allow uploading of large images

This commit is contained in:
Nick Kanel 2020-04-02 20:46:12 -04:00 committed by byte[]
parent e9a1ccad1f
commit 4ccd733c2f

View file

@ -8,6 +8,9 @@ server {
root $APP_DIR/priv/static; root $APP_DIR/priv/static;
client_max_body_size 30M;
client_body_buffer_size 128k;
location ~ ^/img/view/(.+)/([0-9]+).*\.([A-Za-z]+)$ { location ~ ^/img/view/(.+)/([0-9]+).*\.([A-Za-z]+)$ {
expires max; expires max;
add_header Cache-Control public; add_header Cache-Control public;
@ -57,9 +60,6 @@ server {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 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_connect_timeout 90;
proxy_send_timeout 90; proxy_send_timeout 90;
proxy_read_timeout 90; proxy_read_timeout 90;