Now, it is time for some fine-tuning of the Nginx settings. They are recommended to enable response buffering and data compression that should improve the speed of the website. We also set a specific location for the logs.
The following configurations should be added inside the server listening on port 443; for example, just after the proxy definitions:
# odoo log files access_log /var/log/nginx/odoo-access.log; error_log /var/log/nginx/odoo-error.log; # increase proxy buffer size proxy_buffers 16 64k; proxy_buffer_size 128k; # force timeouts if the backend dies proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
An optimization is to enable the gzip data compression, but this comes enabled by ...