2018-02-20 03:29:15 +01:00
|
|
|
upstream ${SERVICE}server {
|
|
|
|
server ${SERVICE}:8069 fail_timeout=300s;
|
2016-11-20 20:41:17 +01:00
|
|
|
}
|
|
|
|
|
2018-02-20 03:29:15 +01:00
|
|
|
upstream ${SERVICE}longpoll {
|
|
|
|
server ${SERVICE}:8072 fail_timeout=300s;
|
2016-11-20 20:41:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
2017-04-03 15:56:21 +02:00
|
|
|
listen ${PORT};
|
2018-02-20 03:29:15 +01:00
|
|
|
server_name ${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 / {
|
2018-02-20 03:29:15 +01:00
|
|
|
proxy_pass http://${SERVICE}server;
|
2017-03-31 11:21:50 +02:00
|
|
|
proxy_redirect off;
|
2016-11-20 20:41:17 +01:00
|
|
|
}
|
|
|
|
location /longpolling {
|
2018-02-20 03:29:15 +01:00
|
|
|
proxy_pass http://${SERVICE}longpoll;
|
2016-11-20 20:41:17 +01:00
|
|
|
}
|
|
|
|
}
|