mirror of
https://github.com/projectsend/projectsend.git
synced 2026-10-04 13:33:22 +00:00
feat: ignore nginx logs on /up parh
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user