From 11e2e35746866027694188d97c80545f552dd56f Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 27 Dec 2025 14:41:06 +0100 Subject: [PATCH] No trailing slashes in endpoints --- nix/modules/default/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nix/modules/default/default.nix b/nix/modules/default/default.nix index 6d13458d5..0cb837e24 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;