minecraft: Add option to enable rcon

This commit is contained in:
saibotk 2021-12-01 04:31:27 +01:00
parent f6112a31bd
commit 64b58bbfca
Signed by: saibotk
GPG key ID: 67585F0065E261D5
2 changed files with 4 additions and 1 deletions

View file

@ -39,6 +39,9 @@ minecraft_rcon_certresolver: letsencrypt_http
# The domain under which the rcon web console/websocket is reachable (used by traefik)
minecraft_rcon_domain: minecraft.example.com
# Should RCON be enabled on the minecraft server?
minecraft_enable_rcon: true
# Should the RCON webinterface be deployed?
minecraft_enable_rcon_web: false

View file

@ -33,7 +33,7 @@ services:
- no-new-privileges
environment:
EULA: "TRUE"
ENABLE_RCON: "{{ minecraft_enable_rcon_web | bool | lower }}"
ENABLE_RCON: "{{ minecraft_enable_rcon | bool | lower }}"
RCON_PASSWORD: "{{ minecraft_rcon_password }}"
RCON_PORT: 28016
# enable env variable replacement