diff --git a/docker/web/nginx.conf b/docker/web/nginx.conf index 94d34338..fc7b3cad 100644 --- a/docker/web/nginx.conf +++ b/docker/web/nginx.conf @@ -8,6 +8,9 @@ server { root $APP_DIR/priv/static; + client_max_body_size 30M; + client_body_buffer_size 128k; + location ~ ^/img/view/(.+)/([0-9]+).*\.([A-Za-z]+)$ { expires max; add_header Cache-Control public; @@ -57,9 +60,6 @@ server { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - client_max_body_size 30m; - client_body_buffer_size 128k; - proxy_connect_timeout 90; proxy_send_timeout 90; proxy_read_timeout 90;