From 40fa44dcc2eadc9a226c9fed97e6d4b1ff720085 Mon Sep 17 00:00:00 2001 From: Viyurz Date: Mon, 8 Apr 2024 17:35:09 +0200 Subject: [PATCH] Fix proxy headers when using WebSocket. --- roles/nginx/templates/sites-enabled/hedgedoc.conf | 1 + roles/nginx/templates/sites-enabled/jmap.conf | 1 + roles/nginx/templates/sites-enabled/syncthing-discovery.conf | 1 + roles/nginx/templates/sites-enabled/uptime-kuma.conf | 1 + roles/nginx/templates/sites-enabled/vaultwarden.conf | 1 + 5 files changed, 5 insertions(+) diff --git a/roles/nginx/templates/sites-enabled/hedgedoc.conf b/roles/nginx/templates/sites-enabled/hedgedoc.conf index 59f0779..97dadc7 100644 --- a/roles/nginx/templates/sites-enabled/hedgedoc.conf +++ b/roles/nginx/templates/sites-enabled/hedgedoc.conf @@ -12,5 +12,6 @@ server { proxy_pass http://127.0.0.1:{{ ports['hedgedoc'] }}; include /etc/nginx/snippets/websocket.conf; + include /etc/nginx/snippets/proxy.conf; } } diff --git a/roles/nginx/templates/sites-enabled/jmap.conf b/roles/nginx/templates/sites-enabled/jmap.conf index ad59191..943771d 100644 --- a/roles/nginx/templates/sites-enabled/jmap.conf +++ b/roles/nginx/templates/sites-enabled/jmap.conf @@ -8,5 +8,6 @@ server { proxy_pass https://127.0.0.1:{{ ports['mailserver_jmap'] }}; include /etc/nginx/snippets/websocket.conf; + include /etc/nginx/snippets/proxy.conf; } } diff --git a/roles/nginx/templates/sites-enabled/syncthing-discovery.conf b/roles/nginx/templates/sites-enabled/syncthing-discovery.conf index 5cbb163..72b4411 100644 --- a/roles/nginx/templates/sites-enabled/syncthing-discovery.conf +++ b/roles/nginx/templates/sites-enabled/syncthing-discovery.conf @@ -12,5 +12,6 @@ server { proxy_set_header X-Client-Port $remote_port; proxy_set_header X-SSL-Cert $ssl_client_cert; include /etc/nginx/snippets/websocket.conf; + include /etc/nginx/snippets/proxy.conf; } } diff --git a/roles/nginx/templates/sites-enabled/uptime-kuma.conf b/roles/nginx/templates/sites-enabled/uptime-kuma.conf index a90762f..cab3a17 100644 --- a/roles/nginx/templates/sites-enabled/uptime-kuma.conf +++ b/roles/nginx/templates/sites-enabled/uptime-kuma.conf @@ -8,5 +8,6 @@ server { proxy_pass http://127.0.0.1:{{ ports['uptime_kuma'] }}; include /etc/nginx/snippets/websocket.conf; + include /etc/nginx/snippets/proxy.conf; } } diff --git a/roles/nginx/templates/sites-enabled/vaultwarden.conf b/roles/nginx/templates/sites-enabled/vaultwarden.conf index cfaceb6..8c422fd 100644 --- a/roles/nginx/templates/sites-enabled/vaultwarden.conf +++ b/roles/nginx/templates/sites-enabled/vaultwarden.conf @@ -14,5 +14,6 @@ server { proxy_pass http://vaultwarden; include /etc/nginx/snippets/websocket.conf; + include /etc/nginx/snippets/proxy.conf; } }