diff options
author | Mathias Magnusson <mathias@magnusson.space> | 2023-12-11 13:05:30 +0100 |
---|---|---|
committer | Mathias Magnusson <mathias@magnusson.space> | 2023-12-11 13:05:30 +0100 |
commit | 278669edb25a84f197034c130eb372a38110385a (patch) | |
tree | 62c0ce806ccc00a41a871e98be9e0a2496e7f7ed /jobs | |
parent | 2e7a72d17ce137d9d81d75c4cec6278da0bd54ff (diff) | |
download | garm-278669edb25a84f197034c130eb372a38110385a.tar.gz |
Fix websocket proxy
Diffstat (limited to 'jobs')
-rw-r--r-- | jobs/virtual-hosting.nomad.hcl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jobs/virtual-hosting.nomad.hcl b/jobs/virtual-hosting.nomad.hcl index 9c0b649..e35e29b 100644 --- a/jobs/virtual-hosting.nomad.hcl +++ b/jobs/virtual-hosting.nomad.hcl @@ -76,7 +76,6 @@ http { EOF destination = "local/nginx.conf" - change_mode = "signal" change_signal = "SIGHUP" } template { @@ -159,6 +158,7 @@ server { proxy_set_header X-Forwarded-Port $server_port; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; } @@ -179,6 +179,7 @@ server { proxy_set_header X-Forwarded-Port $server_port; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; } @@ -234,6 +235,7 @@ server { proxy_set_header X-Forwarded-Port $server_port; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; } @@ -244,7 +246,6 @@ server { EOF destination = "local/virtual-hosting.conf" - change_mode = "signal" change_signal = "SIGHUP" } } |