[FIX]Odoo redirect on port too...
This commit is contained in:
parent
7d607778c2
commit
413df9d7f7
@ -23,15 +23,15 @@ server {
|
|||||||
proxy_read_timeout 720s;
|
proxy_read_timeout 720s;
|
||||||
proxy_connect_timeout 720s;
|
proxy_connect_timeout 720s;
|
||||||
proxy_send_timeout 720s;
|
proxy_send_timeout 720s;
|
||||||
proxy_set_header Host ${DOLLSIGN}host;
|
proxy_set_header Host ${DOLLSIGN}http_host;
|
||||||
proxy_set_header X-Forwarded-Host ${DOLLSIGN}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-For ${DOLLSIGN}proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto ${DOLLSIGN}scheme;
|
proxy_set_header X-Forwarded-Proto ${DOLLSIGN}scheme;
|
||||||
proxy_set_header X-Real-IP ${DOLLSIGN}remote_addr;
|
proxy_set_header X-Real-IP ${DOLLSIGN}remote_addr;
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://${ODOO_SERVICE}server;
|
proxy_pass http://${ODOO_SERVICE}server;
|
||||||
# proxy_redirect off;
|
proxy_redirect off;
|
||||||
proxy_redirect http://${DOLLSIGN}http_host/ https://${DOLLSIGN}host:${DOLLSIGN}server_port/;
|
# proxy_redirect http://${DOLLSIGN}http_host/ https://${DOLLSIGN}host:${DOLLSIGN}server_port/;
|
||||||
}
|
}
|
||||||
location /longpolling {
|
location /longpolling {
|
||||||
proxy_pass http://${ODOO_SERVICE}longpoll;
|
proxy_pass http://${ODOO_SERVICE}longpoll;
|
||||||
|
Loading…
Reference in New Issue
Block a user