Skip to content

Commit ec2b0e7

Browse files
authored
fix: 404 plugin files & docker logging (#163)
Plugin files were not properly loaded because the web.local container didn't have the volume for it NOTE: nginx now also logs into /dev/stdout directly to make sure docker can catch its logs, also, we filter out non-error access logs
1 parent d365f86 commit ec2b0e7

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

conf/dist/nginx-conf/wordpress.conf

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
1+
2+
map $status $loggable
3+
{
4+
~^[2] 0;
5+
~^[3] 0;
6+
default 1;
7+
}
8+
19
server {
210
listen 80;
311
listen 443 ssl;
412

513
root /var/www/html;
614
index index.php;
715

8-
access_log /var/log/nginx/access.log;
9-
error_log /var/log/nginx/error.log;
16+
access_log /dev/stdout combined if=$loggable;
17+
error_log /dev/stderr;
1018

1119
client_max_body_size 128M;
1220

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ services:
105105
- ${DOCKER_CONF_CERTS_PATH:-./data/plugins/}:/tmp/plugins
106106
- ./var/logs:/var/log/nginx
107107
- ${DOCKER_WORDPRESS_SRC_PATH:-wordpress-src}:/var/www/html:ro
108+
- ./src/acore-wp-plugin:/var/www/html/wp-content/plugins/acore-wp-plugins
108109
extra_hosts:
109110
- "web.local:127.0.0.1"
110111
ports:

0 commit comments

Comments
 (0)