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

@ -20,6 +20,12 @@ server {
resolver 8.8.8.8 8.8.4.4 valid=300s;
resolver_timeout 5s;
% if max_body_size:
client_max_body_size ${max_body_size};
% elif proxy:
client_max_body_size 5M;
% endif
add_header Referrer-Policy same-origin;
add_header X-Content-Type-Options nosniff;

View file

@ -27,7 +27,7 @@ http {
client_body_buffer_size 10K;
client_header_buffer_size 1k;
client_max_body_size 8m;
client_max_body_size 1M;
large_client_header_buffers 2 1k;
map $http_upgrade $connection_upgrade {

View file

@ -30,6 +30,12 @@ server {
resolver 8.8.8.8 8.8.4.4 valid=300s;
resolver_timeout 5s;
% if max_body_size:
client_max_body_size ${max_body_size};
% elif proxy or php:
client_max_body_size 5M;
% endif
% if not do_not_set_content_security_headers:
add_header Referrer-Policy same-origin;
add_header X-Frame-Options "SAMEORIGIN";