From 5f567ec1747a9ebc7d390064bf23e4353d9d619a Mon Sep 17 00:00:00 2001 From: Fluffy9 Date: Thu, 17 Mar 2022 10:27:05 -0400 Subject: [PATCH] Add gun to nginx --- docker/nginx/conf.d/server/server.api | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docker/nginx/conf.d/server/server.api b/docker/nginx/conf.d/server/server.api index ce93c669..0bf660d4 100644 --- a/docker/nginx/conf.d/server/server.api +++ b/docker/nginx/conf.d/server/server.api @@ -164,6 +164,15 @@ location /skynet/restore { proxy_pass http://sia:9980; } +location /gun { + include /etc/nginx/conf.d/include/cors; + + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + + proxy_pass http://10.10.10.163:8765/gun; +} + location /skynet/registry/subscription { include /etc/nginx/conf.d/include/cors;