diff --git a/docker/production/nginx.conf b/docker/production/nginx.conf index bd517852..cdddc605 100644 --- a/docker/production/nginx.conf +++ b/docker/production/nginx.conf @@ -13,12 +13,21 @@ # as the alpine package's `nginx` (uid 100) and cannot read what # php-fpm just wrote — see the comment on that line. +# Set the loggable variable to false for requests on the /up path +map $request_uri $loggable { + ~^/up$ 0; + default 1; +} + server { listen 80 default_server; server_name _; root /var/www/html/public; index index.php; + # Override global log policy to disable logs on the /up path + access_log /dev/stdout main if=$loggable; + # Uploads arrive in chunks (Uppy resumable), so this caps a single # chunk, not a file. Raising it does not raise the maximum file size. client_max_body_size 100m; diff --git a/docker/production/www-pool.conf b/docker/production/www-pool.conf index 51e2863a..75056973 100644 --- a/docker/production/www-pool.conf +++ b/docker/production/www-pool.conf @@ -24,3 +24,5 @@ group = www-data catch_workers_output = yes decorate_workers_output = no + +access.log = /dev/null