diff --git a/odoo/nginx/odoo.conf b/odoo/nginx/odoo.conf index 6bb3f87..44a5ab7 100644 --- a/odoo/nginx/odoo.conf +++ b/odoo/nginx/odoo.conf @@ -20,9 +20,14 @@ server { gzip_min_length 256; gzip_types text/plain application/x-javascript application/json text/xml text/css; gzip_vary on; + keepalive_timeout 120s; proxy_read_timeout 720s; proxy_connect_timeout 720s; proxy_send_timeout 720s; + proxy_buffer_size 64k; + proxy_buffering off; + proxy_buffers 4 64k; + proxy_busy_buffers_size 64k; proxy_set_header Host ${DOLLSIGN}http_host; proxy_set_header X-Forwarded-Host ${DOLLSIGN}http_host; proxy_set_header X-Forwarded-For ${DOLLSIGN}proxy_add_x_forwarded_for; @@ -36,4 +41,10 @@ server { location /longpolling { proxy_pass http://${SERVICE}longpoll; } + location ~ /[a-zA-Z0-9_-]*/static/ { + proxy_pass http://${SERVICE}server; + proxy_cache_valid 200 60m; + proxy_buffering on; + expires 864000; + } }