From 96e11d0db93e2c53498b34d06ab156b1e3faefed Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 27 Dec 2025 07:10:10 +0100 Subject: Proxy websockets for gateway --- host/Rory-ovh/services/containers/spacebar/container.nix | 2 +- host/Rory-ovh/services/nginx/spacebar.chat/server/rory/gateway.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/host/Rory-ovh/services/containers/spacebar/container.nix b/host/Rory-ovh/services/containers/spacebar/container.nix index 2c2bd3d..2abd2be 100644 --- a/host/Rory-ovh/services/containers/spacebar/container.nix +++ b/host/Rory-ovh/services/containers/spacebar/container.nix @@ -24,6 +24,6 @@ bindMounts."spacebar-storage" = { hostPath = "/data/dedicated/spacebar-storage"; mountPoint = "/storage"; - isReadOnly = true; + isReadOnly = false; }; } diff --git a/host/Rory-ovh/services/nginx/spacebar.chat/server/rory/gateway.nix b/host/Rory-ovh/services/nginx/spacebar.chat/server/rory/gateway.nix index 0761235..c74d7e9 100644 --- a/host/Rory-ovh/services/nginx/spacebar.chat/server/rory/gateway.nix +++ b/host/Rory-ovh/services/nginx/spacebar.chat/server/rory/gateway.nix @@ -4,6 +4,7 @@ addSSL = !config.virtualisation.isVmVariant; locations."/" = { proxyPass = "http://192.168.100.22:3002"; + proxyWebsockets = true; extraConfig = '' if ($request_method = 'OPTIONS') { more_set_headers 'Access-Control-Allow-Origin: *'; -- cgit 1.5.1