[IMP]Improve base template for odoo.conf with dynamic service name
This commit is contained in:
parent
18f8850933
commit
5d7ac17117
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ server {
|
|||||||
gzip_types text/plain application/x-javascript application/json text/xml text/css;
|
gzip_types text/plain application/x-javascript application/json text/xml text/css;
|
||||||
gzip_vary on;
|
gzip_vary on;
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://odooserver;
|
proxy_pass http://${ODOO_SERVICE}server;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_read_timeout 300;
|
proxy_read_timeout 300;
|
||||||
proxy_set_header Host ${DOLLSIGN}http_host;
|
proxy_set_header Host ${DOLLSIGN}http_host;
|
||||||
@ -32,7 +32,7 @@ server {
|
|||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
}
|
}
|
||||||
location /longpolling {
|
location /longpolling {
|
||||||
proxy_pass http://odoolongpoll;
|
proxy_pass http://${ODOO_SERVICE}longpoll;
|
||||||
proxy_set_header Host ${DOLLSIGN}http_host;
|
proxy_set_header Host ${DOLLSIGN}http_host;
|
||||||
proxy_set_header X-Real-IP ${DOLLSIGN}remote_addr;
|
proxy_set_header X-Real-IP ${DOLLSIGN}remote_addr;
|
||||||
proxy_set_header X-Forward-For ${DOLLSIGN}proxy_add_x_forwarded_for;
|
proxy_set_header X-Forward-For ${DOLLSIGN}proxy_add_x_forwarded_for;
|
||||||
|
Loading…
Reference in New Issue
Block a user