summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-20 19:24:20 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-20 19:26:20 +0200
commit674fa8364ed36e09bb428d4d063646930b560828 (patch)
tree52b0df0198df530026c0530aa46ec6988a38ad55 /src/Server.ts
parentDisable yarn PnP (diff)
downloadserver-674fa8364ed36e09bb428d4d063646930b560828.tar.xz
Improve first setup, make server load initial configuraiton
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) {