mirror of
https://github.com/projectsend/projectsend.git
synced 2026-10-03 12:54:18 +00:00
Merge pull request #1804 from 01110111000001/feat/quieter-logs
Quieter logs in docker container
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;
|
||||
|
||||
@@ -24,3 +24,5 @@ group = www-data
|
||||
|
||||
catch_workers_output = yes
|
||||
decorate_workers_output = no
|
||||
|
||||
access.log = /dev/null
|
||||
|
||||
Reference in New Issue
Block a user