2020-12-24 14:27:31 +01:00
|
|
|
location /
|
|
|
|
{
|
2021-01-01 21:05:58 +01:00
|
|
|
{% if https_port is defined %}
|
|
|
|
proxy_pass https://127.0.0.1:{{https_port}}/;
|
|
|
|
{% else %}
|
|
|
|
proxy_pass http://127.0.0.1:{{http_port}}/;
|
|
|
|
{% endif %}
|
2021-01-02 10:39:20 +01:00
|
|
|
|
2022-01-29 19:07:44 +01:00
|
|
|
# headers
|
2020-12-24 14:27:31 +01:00
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
2022-01-19 00:03:38 +01:00
|
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
|
|
proxy_set_header X-Forwarded-Port 443;
|
2021-01-02 13:25:43 +01:00
|
|
|
|
2022-01-29 19:07:44 +01:00
|
|
|
# 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;
|
2022-08-19 13:32:51 +02:00
|
|
|
proxy_send_timeout 900s;
|
|
|
|
proxy_read_timeout 900s;
|
|
|
|
send_timeout 900s;
|
2020-12-24 14:27:31 +01:00
|
|
|
}
|