[FIX]Odoo redirect on port too...

This commit is contained in:
Fabien BOURGEOIS 2017-07-01 16:19:13 +02:00
parent 7d607778c2
commit 413df9d7f7

View File

@ -23,15 +23,15 @@ server {
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;
location / {
proxy_pass http://${ODOO_SERVICE}server;
# proxy_redirect off;
proxy_redirect http://${DOLLSIGN}http_host/ https://${DOLLSIGN}host:${DOLLSIGN}server_port/;
proxy_redirect off;
# proxy_redirect http://${DOLLSIGN}http_host/ https://${DOLLSIGN}host:${DOLLSIGN}server_port/;
}
location /longpolling {
proxy_pass http://${ODOO_SERVICE}longpoll;