From 2a50029fa1035b1f8bc8d81b0d992100bcef83e4 Mon Sep 17 00:00:00 2001 From: Fabien Bourgeois Date: Mon, 3 Apr 2017 15:56:21 +0200 Subject: [PATCH] [FIX]Odoo dev nginx proxy needs http_host to keep custom port --- odoo/nginx/odoo.conf.dev | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/odoo/nginx/odoo.conf.dev b/odoo/nginx/odoo.conf.dev index 2ead560..ecfc50d 100644 --- a/odoo/nginx/odoo.conf.dev +++ b/odoo/nginx/odoo.conf.dev @@ -1,5 +1,5 @@ upstream odooserver { - server ${ODOO_SERVICE}:8069 fail_timeout=300s; + server ${ODOO_SERVICE}:8069 fail_timeout=300s; } upstream odoolongpoll { @@ -7,14 +7,14 @@ upstream odoolongpoll { } server { - listen ${PORT}; - server_name ${ODOO_SERVER_NAMES}; + listen ${PORT}; + server_name ${ODOO_SERVER_NAMES}; client_max_body_size 200M; proxy_read_timeout 720s; proxy_connect_timeout 720s; proxy_send_timeout 720s; - proxy_set_header Host ${DOLLSIGN}host; - proxy_set_header X-Forwarded-Host ${DOLLSIGN}host; + 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; proxy_set_header X-Forwarded-Proto ${DOLLSIGN}scheme; proxy_set_header X-Real-IP ${DOLLSIGN}remote_addr; @@ -24,5 +24,6 @@ server { } location /longpolling { proxy_pass http://odoolongpoll; + proxy_redirect off; } }