2025-02-19 05:53:00 +01:00
|
|
|
location {{location | default("/")}}
|
2020-12-24 14:27:31 +01:00
|
|
|
{
|
2025-02-19 05:53:00 +01:00
|
|
|
{% if oauth2_proxy_enabled | default(false) | bool %}
|
2025-02-19 03:58:21 +01:00
|
|
|
{% include 'roles/docker-oauth2-proxy/templates/following_directives.conf.j2'%}
|
2025-01-26 13:25:39 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2025-02-19 06:00:37 +01:00
|
|
|
proxy_pass http://127.0.0.1:{{http_port}}{{location | default("/")}};
|
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;
|
2025-02-05 15:49:45 +01:00
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
2022-01-19 00:03:38 +01:00
|
|
|
proxy_set_header X-Forwarded-Port 443;
|
2023-11-18 22:14:54 +01:00
|
|
|
proxy_set_header Accept-Encoding "";
|
2021-01-02 13:25:43 +01:00
|
|
|
|
2023-09-02 18:57:18 +02:00
|
|
|
# WebSocket specific header
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
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
|
|
|
}
|