2016-12-22 16:06:49 +01:00
|
|
|
upstream ${ODOO_SERVICE}server {
|
2016-10-04 08:25:26 +02:00
|
|
|
server ${ODOO_SERVICE}:8069 fail_timeout=300s;
|
2016-09-30 15:03:26 +02:00
|
|
|
}
|
|
|
|
|
2016-12-22 16:06:49 +01:00
|
|
|
upstream ${ODOO_SERVICE}longpoll {
|
2016-10-04 08:25:26 +02:00
|
|
|
server ${ODOO_SERVICE}:8072 fail_timeout=300s;
|
2016-09-30 15:03:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name ${ODOO_SERVER_NAMES};
|
|
|
|
return 301 https://${DOLLSIGN}host${DOLLSIGN}request_uri;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 443 ssl;
|
|
|
|
server_name ${ODOO_SERVER_NAMES};
|
2016-12-04 19:35:49 +01:00
|
|
|
client_max_body_size 200M;
|
|
|
|
gzip on;
|
|
|
|
gzip_min_length 256;
|
|
|
|
gzip_types text/plain application/x-javascript application/json text/xml text/css;
|
|
|
|
gzip_vary on;
|
2017-03-31 11:21:50 +02:00
|
|
|
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 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 / {
|
|
|
|
proxy_pass http://${ODOO_SERVICE}server;
|
|
|
|
proxy_redirect off;
|
2016-09-30 15:03:26 +02:00
|
|
|
}
|
|
|
|
location /longpolling {
|
2016-12-22 16:06:49 +01:00
|
|
|
proxy_pass http://${ODOO_SERVICE}longpoll;
|
2016-09-30 15:03:26 +02:00
|
|
|
}
|
|
|
|
}
|