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;
|
2019-04-24 04:49:55 +02:00
|
|
|
keepalive_timeout 120s;
|
|
|
|
proxy_read_timeout ${PROXY_READ_TIMEOUT};
|
|
|
|
proxy_connect_timeout ${PROXY_CONNECT_TIMEOUT};
|
|
|
|
proxy_send_timeout ${PROXY_SEND_TIMEOUT};
|
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
|
|
|
}
|
|
|
|
}
|