d
All checks were successful
Build / build (20) (push) Successful in 34s
Build / build (22) (push) Successful in 1m2s
Build / build (18) (push) Successful in 1m14s
Build / build (18) (pull_request) Successful in 37s
Build / build (20) (pull_request) Successful in 1m2s
Build / build (22) (pull_request) Successful in 1m12s
All checks were successful
Build / build (20) (push) Successful in 34s
Build / build (22) (push) Successful in 1m2s
Build / build (18) (push) Successful in 1m14s
Build / build (18) (pull_request) Successful in 37s
Build / build (20) (pull_request) Successful in 1m2s
Build / build (22) (pull_request) Successful in 1m12s
This commit is contained in:
parent
815d18623e
commit
ee8ba43e79
@ -5,6 +5,9 @@
|
|||||||
"level": "trace"
|
"level": "trace"
|
||||||
},
|
},
|
||||||
"myAddress": "localhost",
|
"myAddress": "localhost",
|
||||||
|
"hubAddress": "https://localhost/api/",
|
||||||
|
"platformCDNs": ["https://localhost/"],
|
||||||
|
"NRS": ["localhost"],
|
||||||
"httpPort": 80,
|
"httpPort": 80,
|
||||||
"httpsPort": 443,
|
"httpsPort": 443,
|
||||||
"administratorNames": [],
|
"administratorNames": [],
|
||||||
|
@ -6,7 +6,6 @@ import { buildConfig } from "@/src/services/buildConfigService";
|
|||||||
import { Account } from "@/src/models/loginModel";
|
import { Account } from "@/src/models/loginModel";
|
||||||
import { createAccount, isCorrectPassword, isNameTaken } from "@/src/services/loginService";
|
import { createAccount, isCorrectPassword, isNameTaken } from "@/src/services/loginService";
|
||||||
import { IDatabaseAccountJson, ILoginRequest, ILoginResponse } from "@/src/types/loginTypes";
|
import { IDatabaseAccountJson, ILoginRequest, ILoginResponse } from "@/src/types/loginTypes";
|
||||||
import { DTLS, groups, HUB, platformCDNs } from "@/static/fixed_responses/login_static";
|
|
||||||
import { logger } from "@/src/utils/logger";
|
import { logger } from "@/src/utils/logger";
|
||||||
|
|
||||||
export const loginController: RequestHandler = async (request, response) => {
|
export const loginController: RequestHandler = async (request, response) => {
|
||||||
@ -84,12 +83,12 @@ const createLoginResponse = (account: IDatabaseAccountJson, buildLabel: string):
|
|||||||
ConsentNeeded: account.ConsentNeeded,
|
ConsentNeeded: account.ConsentNeeded,
|
||||||
TrackedSettings: account.TrackedSettings,
|
TrackedSettings: account.TrackedSettings,
|
||||||
Nonce: account.Nonce,
|
Nonce: account.Nonce,
|
||||||
Groups: groups,
|
Groups: [],
|
||||||
platformCDNs: platformCDNs,
|
platformCDNs: config.platformCDNs,
|
||||||
NRS: [config.myAddress],
|
HUB: config.hubAddress,
|
||||||
DTLS: DTLS,
|
NRS: config.NRS,
|
||||||
|
DTLS: 99,
|
||||||
IRC: config.myIrcAddresses ?? [config.myAddress],
|
IRC: config.myIrcAddresses ?? [config.myAddress],
|
||||||
HUB: HUB,
|
|
||||||
BuildLabel: buildLabel,
|
BuildLabel: buildLabel,
|
||||||
MatchmakingBuildId: buildConfig.matchmakingBuildId
|
MatchmakingBuildId: buildConfig.matchmakingBuildId
|
||||||
};
|
};
|
||||||
|
@ -33,6 +33,9 @@ interface IConfig {
|
|||||||
httpPort?: number;
|
httpPort?: number;
|
||||||
httpsPort?: number;
|
httpsPort?: number;
|
||||||
myIrcAddresses?: string[];
|
myIrcAddresses?: string[];
|
||||||
|
hubAddress: string;
|
||||||
|
platformCDNs: string[];
|
||||||
|
NRS: string[];
|
||||||
administratorNames?: string[] | string;
|
administratorNames?: string[] | string;
|
||||||
autoCreateAccount?: boolean;
|
autoCreateAccount?: boolean;
|
||||||
skipTutorial?: boolean;
|
skipTutorial?: boolean;
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
import { IGroup } from "@/src/types/loginTypes";
|
|
||||||
|
|
||||||
export const groups: IGroup[] = [
|
|
||||||
{
|
|
||||||
experiment: "InitiatePage",
|
|
||||||
experimentGroup: "initiate_page_no_video"
|
|
||||||
},
|
|
||||||
{ experiment: "ChatQAChannel", experimentGroup: "control" },
|
|
||||||
{
|
|
||||||
experiment: "MarketSearchRecommendations",
|
|
||||||
experimentGroup: "premium_credit_purchases_14_days"
|
|
||||||
},
|
|
||||||
{ experiment: "SurveyLocation", experimentGroup: "EXIT" },
|
|
||||||
{ experiment: "GamesightAB", experimentGroup: "a" }
|
|
||||||
];
|
|
||||||
|
|
||||||
export const platformCDNs = [
|
|
||||||
"https://content.warframe.com/",
|
|
||||||
"https://content-xb1.warframe.com/",
|
|
||||||
"https://content-ps4.warframe.com/",
|
|
||||||
"https://content-swi.warframe.com/",
|
|
||||||
"https://content-mob.warframe.com/"
|
|
||||||
];
|
|
||||||
|
|
||||||
export const DTLS = 99;
|
|
||||||
|
|
||||||
export const HUB = "https://arbiter.warframe.com/api/";
|
|
Loading…
x
Reference in New Issue
Block a user