Add ability to pass commands not in config yaml

This commit is contained in:
Andrew Alexander
2020-08-12 11:38:22 -04:00
committed by Chris Marshall
parent e1ee91b4f7
commit 527087d394
5 changed files with 35 additions and 0 deletions

View File

@ -66,6 +66,8 @@ data:
hostname: "quakekube"
maxClients: 12
password: "changeme"
commands:
- seta g_inactivity 600
maps:
- name: q3dm7
type: FreeForAll
@ -100,6 +102,15 @@ Capture limit for CTF maps can also be configured:
captureLimit: 8
```
Any commands not captured by the config yaml can be specified in the `commands` section:
```yaml
commands:
- seta g_inactivity 600
- seta sv_timeout 120
```
### Add custom maps
The content server hosts a small upload app to allow uploading `pk3` or `zip` files containing maps. The content server in the [example.yaml](example.yaml) shares a volume with the game server, effectively "side-loading" the map content, however, in the future the game server will introspect into the maps and make sure that it can fulfill the users map configuration before starting.