返回提交历史
Modified
.github/workflows/build.yml
+1
-1
Modified
.prettierignore
+1
-1
Modified
README.md
+1
-1
Renamed
config-vanilla.json
+0
-0
Modified
docker-entrypoint.sh
+1
-1
Modified
src/index.ts
+1
-1
XFEstudio/XFESpaceNinjaServer
chore: rename config.json.example to config-vanilla.json (#2570)
Changing file extensions can be a bit of a chore on stock Windows, so this should simplify matters. Another bonus is that the "vanilla" clarifies the general guideline for how the defaults are configured. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2570 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
9901b7af
代码差异
6 个文件
+5
-5
@@ -14,7 +14,7 @@ jobs:
14
14
with:
15
15
node-version: ">=20.6.0"
16
16
- run: npm ci
17
- run: cp config.json.example config.json
17
- run: cp config-vanilla.json config.json
18
18
- run: npm run verify
19
19
- run: npm run lint:ci
20
20
- run: npm run prettier
@@ -2,4 +2,4 @@ src/routes/api.ts
2
2
static/webui/libs/
3
3
*.html
4
4
*.md
5
config.json.example
5
config-vanilla.json
@@ -10,7 +10,7 @@ To get an idea of what functionality you can expect to be missing [have a look t
10
10
11
11
## config.json
12
12
13
SpaceNinjaServer requires a `config.json`. To set it up, you can copy the [config.json.example](config.json.example), which has most cheats disabled.
13
SpaceNinjaServer requires a `config.json`. To set it up, you can copy the [config-vanilla.json](config-vanilla.json), which has most cheats disabled.
14
14
15
15
- `logger.level` can be `fatal`, `error`, `warn`, `info`, `http`, `debug`, or `trace`.
16
16
- `myIrcAddresses` can be used to point to an IRC server. If not provided, defaults to `[ myAddress ]`.
此文件没有可显示的逐行差异。
@@ -2,7 +2,7 @@
2
2
set -e
3
3
4
4
if [ ! -f conf/config.json ]; then
5
jq --arg value "mongodb://openwfagent:spaceninjaserver@mongodb:27017/" '.mongodbUrl = $value' /app/config.json.example > /app/conf/config.json
5
jq --arg value "mongodb://openwfagent:spaceninjaserver@mongodb:27017/" '.mongodbUrl = $value' /app/config-vanilla.json > /app/conf/config.json
6
6
fi
7
7
8
8
exec npm run start -- --configPath conf/config.json
@@ -7,7 +7,7 @@ try {
7
7
if (fs.existsSync("config.json")) {
8
8
console.log("Failed to load " + configPath + ": " + (e as Error).message);
9
9
} else {
10
console.log("Failed to load " + configPath + ". You can copy config.json.example to create your config file.");
10
console.log("Failed to load " + configPath + ". You can copy config-vanilla.json to create your config file.");
11
11
}
12
12
process.exit(1);
13
13
}