返回提交历史
Modified
config.json.example
+1
-3
Modified
src/controllers/api/loginController.ts
+2
-2
Modified
src/services/configService.ts
+0
-2
XFEstudio/SpaceNinjaServer
chore: simplify config (#1090)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1090
e4a3b131
代码差异
3 个文件
+3
-7
@@ -5,11 +5,9 @@
5
5
"level": "trace"
6
6
},
7
7
"myAddress": "localhost",
8
"hubAddress": "https://localhost/api/",
9
"platformCDNs": ["https://localhost/"],
10
"NRS": ["localhost"],
11
8
"httpPort": 80,
12
9
"httpsPort": 443,
10
"NRS": ["localhost"],
13
11
"administratorNames": [],
14
12
"autoCreateAccount": true,
15
13
"skipTutorial": true,
@@ -85,8 +85,8 @@ const createLoginResponse = (account: IDatabaseAccountJson, buildLabel: string):
85
85
Nonce: account.Nonce,
86
86
Groups: [],
87
87
IRC: config.myIrcAddresses ?? [config.myAddress],
88
platformCDNs: config.platformCDNs,
89
HUB: config.hubAddress,
88
platformCDNs: [`https://${config.myAddress}/`],
89
HUB: `https://${config.myAddress}/api/`,
90
90
NRS: config.NRS,
91
91
DTLS: 99,
92
92
BuildLabel: buildLabel,
@@ -33,8 +33,6 @@ interface IConfig {
33
33
httpPort?: number;
34
34
httpsPort?: number;
35
35
myIrcAddresses?: string[];
36
platformCDNs?: string[];
37
hubAddress?: string;
38
36
NRS?: string[];
39
37
administratorNames?: string[] | string;
40
38
autoCreateAccount?: boolean;