Skip to content

Commit 49b8894

Browse files
committed
socket fix
1 parent 00a81aa commit 49b8894

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ volumes:
6969
prom-data:
7070
prom-configs:
7171
log:
72-
redis_data:
72+
redis-data:

nginx/nginx.conf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,18 @@ server {
1818
proxy_pass http://grafana:3000;
1919
proxy_set_header Host $host;
2020
}
21+
22+
location @proxy_to_app {
23+
proxy_pass http://web:8000;
24+
25+
proxy_http_version 1.1;
26+
proxy_set_header Upgrade $http_upgrade;
27+
proxy_set_header Connection "upgrade";
28+
29+
proxy_redirect off;
30+
proxy_set_header Host $host;
31+
proxy_set_header X-Real-IP $remote_addr;
32+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
33+
proxy_set_header X-Forwarded-Host $server_name;
34+
}
2135
}

0 commit comments

Comments
 (0)