From 7bd0a2004c9d7f1c59b510a5462b82c4b0a0ce7a Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 2 Oct 2021 15:12:47 +0200 Subject: :art: restructure gateway --- bundle/src/Server.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'bundle') diff --git a/bundle/src/Server.ts b/bundle/src/Server.ts index 62764e8e..3a56ee2e 100644 --- a/bundle/src/Server.ts +++ b/bundle/src/Server.ts @@ -38,9 +38,23 @@ async function main() { '${location.protocol === "https:" ? "wss://" : "ws://"}${location.host}', endpointPrivate: `ws://localhost:${port}`, ...(!Config.get().gateway.endpointPublic && { - endpointPublic: `http://localhost:${port}`, + 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); await Promise.all([api.start(), cdn.start(), gateway.start()]); -- cgit 1.4.1