Move client_max_body_size inside correct context (#436)
This prevents nginx from whining in combination with other configurations, making the same mistake (setting it outside of context) The [documentation](http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size) states it can be used inside the following contexts: http, server, location.
This commit is contained in:
parent
c88c3d15d1
commit
4285996d1e
|
@ -1,5 +1,3 @@
|
|||
client_max_body_size 50M;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen 443 default_server ssl;
|
||||
|
@ -18,6 +16,8 @@ server {
|
|||
|
||||
access_log {{ app_base }}/www_tmp/access.log;
|
||||
error_log {{ app_base }}/www_tmp/error.log;
|
||||
|
||||
client_max_body_size 50M;
|
||||
|
||||
location / {
|
||||
try_files $uri @clean_url;
|
||||
|
@ -65,4 +65,4 @@ server {
|
|||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue