Skip to content

Commit

Permalink
Added client_max_body_size to proxy cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSkierniewski committed Mar 27, 2017
1 parent b221995 commit db25cbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ansible/templates/nginx-proxy.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ listen 443 ssl http2 {{ $default_server }};
listen [::]:443 ssl http2 {{ $default_server }};
{{ end }}
server_tokens off;
client_max_body_size 100M;
access_log /var/log/nginx/access.log vhost;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
Expand Down Expand Up @@ -232,6 +233,7 @@ listen 80 {{ $default_server }};
listen [::]:80 {{ $default_server }};
{{ end }}
server_tokens off;
client_max_body_size 100M;
access_log /var/log/nginx/access.log vhost;

{{ if (exists (printf "/etc/nginx/vhost.d/%s" $host)) }}
Expand Down

0 comments on commit db25cbc

Please sign in to comment.