1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-22 10:22:39 +01:00

also don't use 3002 as default when gateway endpoints are null

This commit is contained in:
Madeline 2023-01-26 10:21:13 +11:00
parent 08560d8655
commit 38c85e6c4f
No known key found for this signature in database
GPG Key ID: 80D25DA3BCB24281
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ const options: RouteOptions = {
router.get("/", route(options), (req: Request, res: Response) => {
const { endpointPublic } = Config.get().gateway;
res.json({
url: endpointPublic || process.env.GATEWAY || "ws://localhost:3002",
url: endpointPublic || process.env.GATEWAY || "ws://localhost:3001",
shards: 1,
session_start_limit: {
total: 1000,

View File

@ -37,7 +37,7 @@ const options: RouteOptions = {
router.get("/", route(options), (req: Request, res: Response) => {
const { endpointPublic } = Config.get().gateway;
res.json({
url: endpointPublic || process.env.GATEWAY || "ws://localhost:3002",
url: endpointPublic || process.env.GATEWAY || "ws://localhost:3001",
});
});

View File

@ -29,7 +29,7 @@ router.get("/", route({}), async (req: Request, res: Response) => {
gateway:
gateway.endpointPublic ||
process.env.GATEWAY ||
"ws://localhost:3002",
"ws://localhost:3001",
defaultApiVersion: api.defaultVersion ?? 9,
apiEndpoint: api.endpointPublic ?? "/api",
};