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:
Ken Verhaegen 2018-02-17 21:14:44 +01:00 committed by Buster "Silver Eagle" Neece
parent c88c3d15d1
commit 4285996d1e
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}
}