2017-04-12 21:44:39 +02:00
|
|
|
upstream ${ODOO_SERVICE}server {
|
2017-04-03 15:56:21 +02:00
|
|
|
server ${ODOO_SERVICE}:8069 fail_timeout=300s;
|
2016-11-20 20:41:17 +01:00
|
|
|
}
|
|
|
|
|
2017-04-12 21:44:39 +02:00
|
|
|
upstream ${ODOO_SERVICE}longpoll {
|
2016-11-20 20:41:17 +01:00
|
|
|
server ${ODOO_SERVICE}:8072 fail_timeout=300s;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
2017-04-03 15:56:21 +02:00
|
|
|
listen ${PORT};
|
|
|
|
server_name ${ODOO_SERVER_NAMES};
|
2016-11-20 20:41:17 +01:00
|
|
|
client_max_body_size 200M;
|
2017-03-31 11:21:50 +02:00
|
|
|
proxy_read_timeout 720s;
|
|
|
|
proxy_connect_timeout 720s;
|
|
|
|
proxy_send_timeout 720s;
|
2017-04-03 15:56:21 +02:00
|
|
|
proxy_set_header Host ${DOLLSIGN}http_host;
|
|
|
|
proxy_set_header X-Forwarded-Host ${DOLLSIGN}http_host;
|
2017-03-31 11:21:50 +02:00
|
|
|
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;
|
|
|
|
location / {
|
2017-04-12 21:44:39 +02:00
|
|
|
proxy_pass http://${ODOO_SERVICE}server;
|
2017-03-31 11:21:50 +02:00
|
|
|
proxy_redirect off;
|
2016-11-20 20:41:17 +01:00
|
|
|
}
|
|
|
|
location /longpolling {
|
2017-04-12 21:44:39 +02:00
|
|
|
proxy_pass http://${ODOO_SERVICE}longpoll;
|
2016-11-20 20:41:17 +01:00
|
|
|
}
|
|
|
|
}
|