summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/Server.ts')
-rw-r--r--src/Server.ts28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/Server.ts b/src/Server.ts

index c94c3bc7..83e16fa6 100644 --- a/src/Server.ts +++ b/src/Server.ts
@@ -38,34 +38,6 @@ async function main() { server.listen(port); await getOrInitialiseDatabase(); await Config.init(); - // only set endpointPublic, if not already set - await Config.set({ - cdn: { - endpointClient: "${location.host}", - endpointPrivate: `http://localhost:${port}` - }, - gateway: { - endpointClient: '${location.protocol === "https:" ? "wss://" : "ws://"}${location.host}', - endpointPrivate: `ws://localhost:${port}`, - ...(!Config.get().gateway.endpointPublic && { - endpointPublic: `ws://localhost:${port}` - }) - } - // regions: { - // default: "fosscord", - // useDefaultAsOptimal: true, - // available: [ - // { - // id: "fosscord", - // name: "Fosscord", - // endpoint: "127.0.0.1:3001", - // vip: false, - // custom: false, - // deprecated: false, - // }, - // ], - // }, - } as any); //Sentry if (Config.get().sentry.enabled) {