bundles/nginx: add configuration option for client_max_body_size
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-03-30 21:26:25 +02:00
parent b7583bc8cc
commit b52a196c73
Signed by: kunsi
GPG key ID: 12E3D2136B818350
13 changed files with 19 additions and 37 deletions

View file

@ -1 +0,0 @@
client_max_body_size 100M;

View file

@ -1,4 +1,2 @@
client_max_body_size 16m;
access_log /var/log/nginx/pleroma.log gdpr;
error_log /var/log/nginx/error.log;

View file

@ -1,5 +1,3 @@
client_max_body_size 0;
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;

View file

@ -1,7 +1,5 @@
add_header Content-Security-Policy "frame-ancestors 'self' chat.franzi.business matrix.nyantec.com";
client_max_body_size 50M;
location /.well-known/matrix/ {
alias /etc/matrix-synapse/wellknown/;
add_header Access-Control-Allow-Origin *;

View file

@ -1,28 +0,0 @@
keepalive_timeout 70;
sendfile on;
client_max_body_size 40m;
client_body_timeout 3600;
location / {
try_files $uri @proxy;
}
location @proxy {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Proxy "";
proxy_pass_header Server;
proxy_pass http://127.0.0.1:3700;
proxy_buffering off;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
tcp_nodelay on;
}
error_page 500 501 502 503 504 /500.html;