@@ -20,6 +20,10 @@ upstream management {
20
20
# insert the grpc+http port of your management container here
21
21
server 127.0.0.1:8012;
22
22
}
23
+ upstream relay {
24
+ # insert the port of your relay container here
25
+ server 127.0.0.1:33080;
26
+ }
23
27
24
28
server {
25
29
# HTTP server config
@@ -55,6 +59,10 @@ server {
55
59
# Proxy Signal wsproxy endpoint
56
60
location /ws-proxy/signal {
57
61
proxy_pass http://signal;
62
+ proxy_http_version 1.1;
63
+ proxy_set_header Upgrade $http_upgrade;
64
+ proxy_set_header Connection "Upgrade";
65
+ proxy_set_header Host $host;
58
66
}
59
67
# Proxy Signal
60
68
location /signalexchange.SignalExchange/ {
@@ -71,6 +79,10 @@ server {
71
79
# Proxy Management wsproxy endpoint
72
80
location /ws-proxy/management {
73
81
proxy_pass http://management;
82
+ proxy_http_version 1.1;
83
+ proxy_set_header Upgrade $http_upgrade;
84
+ proxy_set_header Connection "Upgrade";
85
+ proxy_set_header Host $host;
74
86
}
75
87
# Proxy Management grpc endpoint
76
88
location /management.ManagementService/ {
@@ -80,6 +92,14 @@ server {
80
92
grpc_send_timeout 1d;
81
93
grpc_socket_keepalive on;
82
94
}
95
+ # Proxy Relay
96
+ location /relay {
97
+ proxy_pass http://relay;
98
+ proxy_http_version 1.1;
99
+ proxy_set_header Upgrade $http_upgrade;
100
+ proxy_set_header Connection "Upgrade";
101
+ proxy_set_header Host $host;
102
+ }
83
103
84
104
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
85
105
ssl_certificate_key /etc/ssl/certs/ssl-cert-snakeoil.pem;
0 commit comments