summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-27 07:19:00 +0100
committerRory& <root@rory.gay>2025-12-27 07:19:00 +0100
commit2fa7c675f7dbf459b45c013779bf73982e3c71a4 (patch)
tree2cbb687533f81c8faceba9f87cbb54b2a91d8243
parentProxy websockets for gateway (diff)
downloadRory-Open-Architecture-2fa7c675f7dbf459b45c013779bf73982e3c71a4.tar.xz
Update security settings
-rw-r--r--host/Rory-ovh/services/containers/spacebar/services/spacebar.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/host/Rory-ovh/services/containers/spacebar/services/spacebar.nix b/host/Rory-ovh/services/containers/spacebar/services/spacebar.nix

index 5671a83..affd7f8 100644 --- a/host/Rory-ovh/services/containers/spacebar/services/spacebar.nix +++ b/host/Rory-ovh/services/containers/spacebar/services/spacebar.nix
@@ -13,7 +13,10 @@ in cdnEndpoint = sb.mkEndpoint "cdn.rory.server.spacebar.chat" 3003 true; cdnPath = "/storage"; settings = { - + security = { + forwardedFor = "X-Forwarded-For"; + trustedProxies = "192.168.100.1"; + }; }; extraEnvironment = { DATABASE = "postgres://spacebar:spacebar@192.168.100.1/spacebar";