From 2e7a72d17ce137d9d81d75c4cec6278da0bd54ff Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Mon, 11 Dec 2023 02:19:00 +0100 Subject: Add vaultwarden --- jobs/virtual-hosting.nomad.hcl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'jobs/virtual-hosting.nomad.hcl') diff --git a/jobs/virtual-hosting.nomad.hcl b/jobs/virtual-hosting.nomad.hcl index 49000ef..9c0b649 100644 --- a/jobs/virtual-hosting.nomad.hcl +++ b/jobs/virtual-hosting.nomad.hcl @@ -104,6 +104,11 @@ upstream acme-challenge { } {{ end }} +map $http_upgrade $connection_upgrade { + default upgrade; + '' close; +} + {{ range nomadServices -}} {{- $hostname := "" -}} @@ -155,6 +160,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; } } @@ -174,6 +180,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; } } @@ -228,6 +235,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; } } {{ end -}} -- cgit v1.2.3