summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-27 14:41:06 +0100
committerRory& <root@rory.gay>2025-12-27 14:41:06 +0100
commit11e2e35746866027694188d97c80545f552dd56f (patch)
tree00be50cd1af73ccf171377cadb4a6f2de0e0841b
parentNix: include patches in fileset (diff)
downloadserver-ts-11e2e35746866027694188d97c80545f552dd56f.tar.xz
No trailing slashes in endpoints
-rw-r--r--nix/modules/default/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/nix/modules/default/default.nix b/nix/modules/default/default.nix

index 6d13458d..0cb837e2 100644 --- a/nix/modules/default/default.nix +++ b/nix/modules/default/default.nix
@@ -13,14 +13,14 @@ let configFile = jsonFormat.generate "spacebarchat-server.json" ( lib.recursiveUpdate { api = { - endpointPublic = "http${if cfg.apiEndpoint.useSsl then "s" else ""}://${cfg.apiEndpoint.host}:${toString cfg.apiEndpoint.publicPort}/"; + endpointPublic = "http${if cfg.apiEndpoint.useSsl then "s" else ""}://${cfg.apiEndpoint.host}:${toString cfg.apiEndpoint.publicPort}"; }; cdn = { - endpointPublic = "http${if cfg.cdnEndpoint.useSsl then "s" else ""}://${cfg.cdnEndpoint.host}:${toString cfg.cdnEndpoint.publicPort}/"; - endpointPrivate = "http://127.0.0.1:${toString cfg.cdnEndpoint.localPort}"; # HACK: No leading slash, server cant handle this yet + endpointPublic = "http${if cfg.cdnEndpoint.useSsl then "s" else ""}://${cfg.cdnEndpoint.host}:${toString cfg.cdnEndpoint.publicPort}"; + endpointPrivate = "http://127.0.0.1:${toString cfg.cdnEndpoint.localPort}"; }; gateway = { - endpointPublic = "ws${if cfg.gatewayEndpoint.useSsl then "s" else ""}://${cfg.gatewayEndpoint.host}:${toString cfg.gatewayEndpoint.publicPort}/"; + endpointPublic = "ws${if cfg.gatewayEndpoint.useSsl then "s" else ""}://${cfg.gatewayEndpoint.host}:${toString cfg.gatewayEndpoint.publicPort}"; }; general = { serverName = cfg.serverName;