XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

chore: simplify config (#1090)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1090

e4a3b131
Sainan <sainan@calamity.inc>
提交于

代码差异

3 个文件 +3 -7
Modified config.json.example +1 -3
@@ -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,
Modified src/controllers/api/loginController.ts +2 -2
@@ -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,
Modified src/services/configService.ts +0 -2
@@ -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;