From 674fa8364ed36e09bb428d4d063646930b560828 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sat, 20 Aug 2022 19:24:20 +0200 Subject: Improve first setup, make server load initial configuraiton --- src/util/config/Config.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/util/config/Config.ts') diff --git a/src/util/config/Config.ts b/src/util/config/Config.ts index 27450f95..36c4509d 100644 --- a/src/util/config/Config.ts +++ b/src/util/config/Config.ts @@ -19,8 +19,14 @@ import { } from "."; export class ConfigValue { - gateway: EndpointConfiguration = new EndpointConfiguration(); - cdn: EndpointConfiguration = new EndpointConfiguration(); + gateway: EndpointConfiguration = { + endpointPublic: '${location.protocol === "https:" ? "wss://" : "ws://"}${location.host}', + endpointPrivate: `ws://localhost:3001` + }; + cdn: EndpointConfiguration = { + endpointPublic: "${location.host}", + endpointPrivate: `http://localhost:3001` + }; api: ApiConfiguration = new ApiConfiguration(); general: GeneralConfiguration = new GeneralConfiguration(); limits: LimitsConfiguration = new LimitsConfiguration(); -- cgit 1.5.1