diff options
author | Mathias Magnusson <mathias@magnusson.space> | 2023-12-11 02:19:00 +0100 |
---|---|---|
committer | Mathias Magnusson <mathias@magnusson.space> | 2023-12-11 02:19:00 +0100 |
commit | 2e7a72d17ce137d9d81d75c4cec6278da0bd54ff (patch) | |
tree | 630b28ef5cd869ed4f91d7d83f1b1e759099b930 /jobs/virtual-hosting.nomad.hcl | |
parent | fdaf85a43f6f2ad98c5004bfeeddfd1a92097fb3 (diff) | |
download | garm-2e7a72d17ce137d9d81d75c4cec6278da0bd54ff.tar.gz |
Add vaultwarden
Diffstat (limited to 'jobs/virtual-hosting.nomad.hcl')
-rw-r--r-- | jobs/virtual-hosting.nomad.hcl | 8 |
1 files changed, 8 insertions, 0 deletions
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 -}} |