[IMP]Better base nginx odoo configuration file
This commit is contained in:
parent
5605d17a82
commit
f07ce9c749
@ -1,8 +1,8 @@
|
|||||||
upstream odooserver {
|
upstream ${ODOO_SERVICE}server {
|
||||||
server ${ODOO_SERVICE}:8069 fail_timeout=300s;
|
server ${ODOO_SERVICE}:8069 fail_timeout=300s;
|
||||||
}
|
}
|
||||||
|
|
||||||
upstream odoolongpoll {
|
upstream ${ODOO_SERVICE}longpoll {
|
||||||
server ${ODOO_SERVICE}:8072 fail_timeout=300s;
|
server ${ODOO_SERVICE}:8072 fail_timeout=300s;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -19,11 +19,10 @@ server {
|
|||||||
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://odooserver;
|
proxy_pass http://${ODOO_SERVICE}server;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
}
|
}
|
||||||
location /longpolling {
|
location /longpolling {
|
||||||
proxy_pass http://odoolongpoll;
|
proxy_pass http://${ODOO_SERVICE}longpoll;
|
||||||
proxy_redirect off;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user