summary refs log tree commit diff
path: root/src/bundle
diff options
context:
space:
mode:
Diffstat (limited to 'src/bundle')
-rw-r--r--src/bundle/Server.ts58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/bundle/Server.ts b/src/bundle/Server.ts
index 2bc45f84..dbd57abf 100644
--- a/src/bundle/Server.ts
+++ b/src/bundle/Server.ts
@@ -31,35 +31,35 @@ async function main() {
 	await initDatabase();
 	await Config.init();
 	await BannedWords.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: "slowcord.maddy.k.vu:3004",
-		// 			vip: false,
-		// 			custom: false,
-		// 			deprecated: false,
-		// 		},
-		// 	],
-		// },
-	} as any);
+	// // 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: "slowcord.maddy.k.vu:3004",
+	// 				vip: false,
+	// 				custom: false,
+	// 				deprecated: false,
+	// 			},
+	// 		],
+	// 	},
+	// } as any);
 
 	//Sentry
 	if (Config.get().sentry.enabled) {