feat: ignore nginx logs on /up parh

This commit is contained in:
01110111000001
2026-09-27 03:18:59 +02:00
parent a9b17ddc1e
commit a640bf81ed
+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;