[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 {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user