chore: simplify config #1090

Merged
Sainan merged 1 commits from simplify-config into main 2025-03-07 00:41:37 -08:00
3 changed files with 3 additions and 7 deletions

View File

@ -5,11 +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,
"NRS": ["localhost"],
"administratorNames": [], "administratorNames": [],
"autoCreateAccount": true, "autoCreateAccount": true,
"skipTutorial": true, "skipTutorial": true,

View File

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

View File

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