summary refs log tree commit diff
path: root/host
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-27 07:10:10 +0100
committerRory& <root@rory.gay>2025-12-27 07:10:10 +0100
commit96e11d0db93e2c53498b34d06ab156b1e3faefed (patch)
tree4dadc52842823bce805945002120bf0016f56a86 /host
parentallowed ports maybe? (diff)
downloadRory-Open-Architecture-96e11d0db93e2c53498b34d06ab156b1e3faefed.tar.xz
Proxy websockets for gateway
Diffstat (limited to 'host')
-rw-r--r--host/Rory-ovh/services/containers/spacebar/container.nix2
-rw-r--r--host/Rory-ovh/services/nginx/spacebar.chat/server/rory/gateway.nix1
2 files changed, 2 insertions, 1 deletions
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: *';