bundles/nginx: add configuration option for client_max_body_size
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
b7583bc8cc
commit
b52a196c73
13 changed files with 19 additions and 37 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue