[FIX]Odoo dev nginx proxy needs http_host to keep custom port
This commit is contained in:
parent
1f0b22509c
commit
2a50029fa1
@ -1,5 +1,5 @@
|
|||||||
upstream odooserver {
|
upstream odooserver {
|
||||||
server ${ODOO_SERVICE}:8069 fail_timeout=300s;
|
server ${ODOO_SERVICE}:8069 fail_timeout=300s;
|
||||||
}
|
}
|
||||||
|
|
||||||
upstream odoolongpoll {
|
upstream odoolongpoll {
|
||||||
@ -7,14 +7,14 @@ upstream odoolongpoll {
|
|||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen ${PORT};
|
listen ${PORT};
|
||||||
server_name ${ODOO_SERVER_NAMES};
|
server_name ${ODOO_SERVER_NAMES};
|
||||||
client_max_body_size 200M;
|
client_max_body_size 200M;
|
||||||
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;
|
||||||
@ -24,5 +24,6 @@ server {
|
|||||||
}
|
}
|
||||||
location /longpolling {
|
location /longpolling {
|
||||||
proxy_pass http://odoolongpoll;
|
proxy_pass http://odoolongpoll;
|
||||||
|
proxy_redirect off;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user