forked from OpenWF/SpaceNinjaServer
chore: simplify config (#1090)
Reviewed-on: OpenWF/SpaceNinjaServer#1090
This commit is contained in:
parent
59fd816b0c
commit
e4a3b13160
@ -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,
|
||||||
|
@ -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,
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user