Skip to content

Commit 723c370

Browse files
committed
service/nomad/infrastructure: Fix nomad web-ui
1 parent f2efa5f commit 723c370

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

services/nomad/infrastructure/nginx-sites/05-hashi.conf

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,22 @@ server {
1010
server_name nomad.voidlinux.org;
1111

1212
location / {
13+
proxy_pass http://nomad-ws;
1314
proxy_set_header Host $host;
14-
proxy_pass http://nomad.service.consul:4646;
15+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
1516
proxy_set_header Upgrade $http_upgrade;
1617
proxy_set_header Connection $connection_upgrade;
18+
proxy_set_header Origin "${scheme}://${proxy_host}";
19+
proxy_read_timeout 319s;
20+
proxy_buffering off;
1721
}
1822
}
1923

24+
upstream nomad-ws {
25+
ip_hash;
26+
server nomad.service.consul:4646;
27+
}
28+
2029
server {
2130
include /etc/nginx/fragments/ssl.conf;
2231
listen 443 ssl http2;

0 commit comments

Comments
 (0)