chore: simplify config
All checks were successful
Build / build (20) (push) Successful in 39s
Build / build (22) (push) Successful in 55s
Build / build (18) (push) Successful in 1m1s
Build / build (18) (pull_request) Successful in 40s
Build / build (20) (pull_request) Successful in 54s
Build / build (22) (pull_request) Successful in 3m25s

This commit is contained in:
Sainan 2025-03-06 14:31:04 +01:00
parent 6daa8ab5da
commit fc943c98f5
3 changed files with 3 additions and 7 deletions

View File

@ -5,11 +5,9 @@
"level": "trace"
},
"myAddress": "localhost",
"hubAddress": "https://localhost/api/",
"platformCDNs": ["https://localhost/"],
"NRS": ["localhost"],
"httpPort": 80,
"httpsPort": 443,
"NRS": ["localhost"],
"administratorNames": [],
"autoCreateAccount": true,
"skipTutorial": true,

View File

@ -85,8 +85,8 @@ const createLoginResponse = (account: IDatabaseAccountJson, buildLabel: string):
Nonce: account.Nonce,
Groups: [],
IRC: config.myIrcAddresses ?? [config.myAddress],
platformCDNs: config.platformCDNs,
HUB: config.hubAddress,
platformCDNs: [`https://${config.myAddress}/`],
HUB: `https://${config.myAddress}/api/`,
NRS: config.NRS,
DTLS: 99,
BuildLabel: buildLabel,

View File

@ -33,8 +33,6 @@ interface IConfig {
httpPort?: number;
httpsPort?: number;
myIrcAddresses?: string[];
platformCDNs?: string[];
hubAddress?: string;
NRS?: string[];
administratorNames?: string[] | string;
autoCreateAccount?: boolean;