Last active
April 11, 2018 10:13
-
-
Save pcuci/32b6179f724a13ef9e5f745581011f75 to your computer and use it in GitHub Desktop.
odoo nginx.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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