Merge pull request #1804 from 01110111000001/feat/quieter-logs

Quieter logs in docker container
This commit is contained in:
ignacionelson
2026-10-01 15:23:37 -03:00
2 changed files with 11 additions and 0 deletions
+9
View File
@@ -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;
+2
View File
@@ -24,3 +24,5 @@ group = www-data
catch_workers_output = yes
decorate_workers_output = no
access.log = /dev/null