diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..1331f2d --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,13 @@ +pipeline: + image-build: + image: plugins/docker + settings: + registry: techio.dev + repo: techio.dev/${CI_REPO} + tags: + - alpine + username: deploy + password: + from_secret: deploy_password +when: + event: tag diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..539686e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM nginx:alpine +COPY default.conf /etc/nginx/conf.d \ No newline at end of file diff --git a/default.conf b/default.conf new file mode 100644 index 0000000..c21a4b8 --- /dev/null +++ b/default.conf @@ -0,0 +1,21 @@ +server { + listen 80; + server_name $host; + index index.php index.html index.htm; + index index.php; + client_max_body_size 1G; + + location / { + try_files $uri $uri/ /index.php?$args; + } + + location ~ \.php$ { + try_files $uri = 404; + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_pass wordpress:9000; + fastcgi_index index.php; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param PATH_INFO $fastcgi_path_info; + } +} \ No newline at end of file