[IMP]Odoo nginx prod image performance enhancements
This commit is contained in:
parent
3a93cdca3b
commit
6fb9dc7a81
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user