We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2efa5f commit 723c370Copy full SHA for 723c370
1 file changed
services/nomad/infrastructure/nginx-sites/05-hashi.conf
@@ -10,13 +10,22 @@ server {
10
server_name nomad.voidlinux.org;
11
12
location / {
13
+ proxy_pass http://nomad-ws;
14
proxy_set_header Host $host;
- proxy_pass http://nomad.service.consul:4646;
15
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
16
proxy_set_header Upgrade $http_upgrade;
17
proxy_set_header Connection $connection_upgrade;
18
+ proxy_set_header Origin "${scheme}://${proxy_host}";
19
+ proxy_read_timeout 319s;
20
+ proxy_buffering off;
21
}
22
23
24
+upstream nomad-ws {
25
+ ip_hash;
26
+ server nomad.service.consul:4646;
27
+}
28
+
29
server {
30
include /etc/nginx/fragments/ssl.conf;
31
listen 443 ssl http2;
0 commit comments