also don't use 3002 as default when gateway endpoints are null
This commit is contained in:
parent
1886d53943
commit
8384a2c539
@ -44,7 +44,7 @@ const options: RouteOptions = {
|
|||||||
router.get("/", route(options), (req: Request, res: Response) => {
|
router.get("/", route(options), (req: Request, res: Response) => {
|
||||||
const { endpointPublic } = Config.get().gateway;
|
const { endpointPublic } = Config.get().gateway;
|
||||||
res.json({
|
res.json({
|
||||||
url: endpointPublic || process.env.GATEWAY || "ws://localhost:3002",
|
url: endpointPublic || process.env.GATEWAY || "ws://localhost:3001",
|
||||||
shards: 1,
|
shards: 1,
|
||||||
session_start_limit: {
|
session_start_limit: {
|
||||||
total: 1000,
|
total: 1000,
|
||||||
|
@ -37,7 +37,7 @@ const options: RouteOptions = {
|
|||||||
router.get("/", route(options), (req: Request, res: Response) => {
|
router.get("/", route(options), (req: Request, res: Response) => {
|
||||||
const { endpointPublic } = Config.get().gateway;
|
const { endpointPublic } = Config.get().gateway;
|
||||||
res.json({
|
res.json({
|
||||||
url: endpointPublic || process.env.GATEWAY || "ws://localhost:3002",
|
url: endpointPublic || process.env.GATEWAY || "ws://localhost:3001",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ router.get("/", route({}), async (req: Request, res: Response) => {
|
|||||||
gateway:
|
gateway:
|
||||||
gateway.endpointPublic ||
|
gateway.endpointPublic ||
|
||||||
process.env.GATEWAY ||
|
process.env.GATEWAY ||
|
||||||
"ws://localhost:3002",
|
"ws://localhost:3001",
|
||||||
defaultApiVersion: api.defaultVersion ?? 9,
|
defaultApiVersion: api.defaultVersion ?? 9,
|
||||||
apiEndpoint: api.endpointPublic ?? "/api",
|
apiEndpoint: api.endpointPublic ?? "/api",
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user