From 4205848fdb5397b308513b8380ce39950cb7dcbc Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Tue, 7 Dec 2021 14:46:34 +0200 Subject: [PATCH] fix: various config changes --- abra.sh | 2 +- compose.yml | 7 ++++--- nginx.conf | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/abra.sh b/abra.sh index 0a5b1d5..a18536d 100644 --- a/abra.sh +++ b/abra.sh @@ -1 +1 @@ -export NGINX_CONF_VERSION=v1 +export NGINX_CONF_VERSION=v2 diff --git a/compose.yml b/compose.yml index 35f9f1b..0e82e80 100644 --- a/compose.yml +++ b/compose.yml @@ -12,7 +12,7 @@ services: - backend configs: - source: nginx_conf - target: /etc/nginx/conf.d/default.conf:cached + target: /etc/nginx/conf.d/default.conf deploy: restart_policy: condition: on-failure @@ -40,8 +40,10 @@ services: - DB_NAME=wordpress - DB_USER=wordpress - DB_PASSWORD=wordpress + - DB_HOST=db - WP_ENV=production - WP_HOME=https://${DOMAIN} + - WP_SITEURL=https://${DOMAIN}/wp/ networks: - backend volumes: @@ -58,9 +60,8 @@ services: - MYSQL_DATABASE=wordpress - MYSQL_USER=wordpress - MYSQL_PASSWORD=wordpress - image: nginx:1.19.2 networks: - - proxy + - backend networks: proxy: diff --git a/nginx.conf b/nginx.conf index 40442dd..51e7c87 100644 --- a/nginx.conf +++ b/nginx.conf @@ -38,7 +38,7 @@ server { fastcgi_param SCRIPT_FILENAME /app/web/$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_script_name; - fastcgi_param PHP_VALUE "error_log=/var/log/nginx/application_php_errors.log"; + # fastcgi_param PHP_VALUE "error_log=/var/log/nginx/application_php_errors.log"; fastcgi_buffers 16 16k; fastcgi_buffer_size 32k;