docker_images/odoo/nginx/odoo.conf.dev

32 lines
994 B
Plaintext

upstream odooserver {
server ${ODOO_SERVICE}:8069 fail_timeout=300s;
}
upstream odoolongpoll {
server ${ODOO_SERVICE}:8072 fail_timeout=300s;
}
server {
listen ${PORT};
server_name ${ODOO_SERVER_NAMES};
client_max_body_size 200M;
location / {
proxy_pass http://odooserver;
proxy_http_version 1.1;
proxy_read_timeout 300;
proxy_set_header Host ${DOLLSIGN}http_host;
proxy_set_header X-Real-IP ${DOLLSIGN}remote_addr;
proxy_set_header X-Forward-For ${DOLLSIGN}proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host ${DOLLSIGN}http_host;
proxy_redirect http://$http_host/ https://$host:$server_port/;
}
location /longpolling {
proxy_pass http://odoolongpoll;
proxy_set_header Host ${DOLLSIGN}http_host;
proxy_set_header X-Real-IP ${DOLLSIGN}remote_addr;
proxy_set_header X-Forward-For ${DOLLSIGN}proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host ${DOLLSIGN}http_host;
proxy_redirect off;
}
}