Skip to content

Instantly share code, notes, and snippets.

@pcuci
Last active April 11, 2018 10:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcuci/32b6179f724a13ef9e5f745581011f75 to your computer and use it in GitHub Desktop.
Save pcuci/32b6179f724a13ef9e5f745581011f75 to your computer and use it in GitHub Desktop.
odoo nginx.conf
user www-data;
events {
worker_connections 768;
}
http {
upstream odoo {
server web:8069 fail_timeout=300s;
}
server {
listen 80;
proxy_buffers 16 64k;
proxy_buffer_size 128k;
client_max_body_size 0;
proxy_connect_timeout 600s;
proxy_send_timeout 600s;
proxy_read_timeout 600s;
location / {
proxy_pass http://odoo;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
# set headers
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
proxy_redirect off;
}
location ~* /web/static/ {
proxy_buffering on;
expires 864000;
proxy_pass http://odoo;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment