[IMP]Odoo nginx prod image performance enhancements

This commit is contained in:
Fabien BOURGEOIS 2019-03-12 16:29:43 +01:00
parent 3a93cdca3b
commit 6fb9dc7a81

View File

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