computer-playbook/roles/nginx-docker-reverse-proxy/templates/proxy_pass.conf.j2

27 lines
648 B
Plaintext
Raw Normal View History

2020-12-24 14:27:31 +01:00
location /
{
2022-12-02 18:54:43 +01:00
proxy_pass http://127.0.0.1:{{http_port}}/;
2021-01-02 10:39:20 +01:00
# headers
2020-12-24 14:27:31 +01:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Port 443;
proxy_set_header Accept-Encoding "";
2021-01-02 13:25:43 +01:00
# WebSocket specific header
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# deactivate buffering
proxy_buffering off;
proxy_request_buffering off;
2021-01-02 13:25:43 +01:00
# timeouts
2021-01-02 16:28:48 +01:00
proxy_connect_timeout 1s;
proxy_send_timeout 900s;
proxy_read_timeout 900s;
send_timeout 900s;
2020-12-24 14:27:31 +01:00
}