From 662810aed20c6569c413930f130dd14401160741 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Thu, 9 Nov 2023 00:09:54 -0500 Subject: [PATCH] Nginx tweaks --- machines/tounge/configuration.nix | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/machines/tounge/configuration.nix b/machines/tounge/configuration.nix index 58c4454..0f27240 100644 --- a/machines/tounge/configuration.nix +++ b/machines/tounge/configuration.nix @@ -204,21 +204,9 @@ forceSSL = true; useACMEHost = "mccarty.io"; locations = { - "/socket" = { - proxyPass = "http://100.104.25.128:8096"; - extraConfig = '' - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Forwarded-Protocol $scheme; - proxy_set_header X-Forwarded-Host $http_host; - ''; - }; "/" = { proxyPass = "http://100.104.25.128:8096"; + proxyWebsockets = true; extraConfig = '' allow all; ''; @@ -271,6 +259,7 @@ forceSSL = true; useACMEHost = "mccarty.io"; locations."/" = { + proxyWebsockets = true; proxyPass = "http://100.104.25.128:13378"; extraConfig = '' allow 100.64.0.0/10;