[FIX]Nginx Odoo DEV replace variable names

This commit is contained in:
Fabien BOURGEOIS 2018-02-20 03:29:15 +01:00
parent 07aad0d046
commit ca727ca6fd

View File

@ -1,14 +1,14 @@
upstream ${ODOO_SERVICE}server { upstream ${SERVICE}server {
server ${ODOO_SERVICE}:8069 fail_timeout=300s; server ${SERVICE}:8069 fail_timeout=300s;
} }
upstream ${ODOO_SERVICE}longpoll { upstream ${SERVICE}longpoll {
server ${ODOO_SERVICE}:8072 fail_timeout=300s; server ${SERVICE}:8072 fail_timeout=300s;
} }
server { server {
listen ${PORT}; listen ${PORT};
server_name ${ODOO_SERVER_NAMES}; server_name ${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;
@ -19,10 +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://${ODOO_SERVICE}server; proxy_pass http://${SERVICE}server;
proxy_redirect off; proxy_redirect off;
} }
location /longpolling { location /longpolling {
proxy_pass http://${ODOO_SERVICE}longpoll; proxy_pass http://${SERVICE}longpoll;
} }
} }