mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 16:26:38 +00:00
Add websocket paths including relay to nginx template (#4573)
This commit is contained in:
@@ -20,6 +20,10 @@ upstream management {
|
|||||||
# insert the grpc+http port of your management container here
|
# insert the grpc+http port of your management container here
|
||||||
server 127.0.0.1:8012;
|
server 127.0.0.1:8012;
|
||||||
}
|
}
|
||||||
|
upstream relay {
|
||||||
|
# insert the port of your relay container here
|
||||||
|
server 127.0.0.1:33080;
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
# HTTP server config
|
# HTTP server config
|
||||||
@@ -55,6 +59,10 @@ server {
|
|||||||
# Proxy Signal wsproxy endpoint
|
# Proxy Signal wsproxy endpoint
|
||||||
location /ws-proxy/signal {
|
location /ws-proxy/signal {
|
||||||
proxy_pass http://signal;
|
proxy_pass http://signal;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "Upgrade";
|
||||||
|
proxy_set_header Host $host;
|
||||||
}
|
}
|
||||||
# Proxy Signal
|
# Proxy Signal
|
||||||
location /signalexchange.SignalExchange/ {
|
location /signalexchange.SignalExchange/ {
|
||||||
@@ -71,6 +79,10 @@ server {
|
|||||||
# Proxy Management wsproxy endpoint
|
# Proxy Management wsproxy endpoint
|
||||||
location /ws-proxy/management {
|
location /ws-proxy/management {
|
||||||
proxy_pass http://management;
|
proxy_pass http://management;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "Upgrade";
|
||||||
|
proxy_set_header Host $host;
|
||||||
}
|
}
|
||||||
# Proxy Management grpc endpoint
|
# Proxy Management grpc endpoint
|
||||||
location /management.ManagementService/ {
|
location /management.ManagementService/ {
|
||||||
@@ -80,6 +92,14 @@ server {
|
|||||||
grpc_send_timeout 1d;
|
grpc_send_timeout 1d;
|
||||||
grpc_socket_keepalive on;
|
grpc_socket_keepalive on;
|
||||||
}
|
}
|
||||||
|
# Proxy Relay
|
||||||
|
location /relay {
|
||||||
|
proxy_pass http://relay;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "Upgrade";
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
}
|
||||||
|
|
||||||
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
||||||
ssl_certificate_key /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
ssl_certificate_key /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
||||||
|
|||||||
Reference in New Issue
Block a user