30 lines
930 B
Plaintext
30 lines
930 B
Plaintext
upstream ${SERVICE}server {
|
|
server ${SERVICE}:8069 fail_timeout=300s;
|
|
}
|
|
|
|
upstream ${SERVICE}longpoll {
|
|
server ${SERVICE}:8072 fail_timeout=300s;
|
|
}
|
|
|
|
server {
|
|
listen ${PORT};
|
|
server_name ${SERVER_NAMES};
|
|
client_max_body_size 500M;
|
|
keepalive_timeout 120s;
|
|
proxy_read_timeout ${PROXY_READ_TIMEOUT};
|
|
proxy_connect_timeout ${PROXY_CONNECT_TIMEOUT};
|
|
proxy_send_timeout ${PROXY_SEND_TIMEOUT};
|
|
proxy_set_header Host ${DOLLSIGN}http_host;
|
|
proxy_set_header X-Forwarded-Host ${DOLLSIGN}http_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://${SERVICE}server;
|
|
proxy_redirect off;
|
|
}
|
|
location /longpolling {
|
|
proxy_pass http://${SERVICE}longpoll;
|
|
}
|
|
}
|