docs: clarify placeholder intro (#2488)

This commit is contained in:
Geoff Bourne 2023-11-12 19:38:21 -06:00 committed by GitHub
parent 85a957fe6f
commit 4c0bd61faf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -6,9 +6,9 @@ If you prefer to manually manage the `server.properties` file, set `OVERRIDE_SER
## Placeholders
Any of the server properties mapped from the environment variables [below](#properties), may contain placeholders that are replaced when the `server.properties` file is updated. The syntax of placeholders is DOS-style, `%VAR%` to avoid being processed by Docker or the shell.
When declaring a server properties via container environment variables, those values may contain placeholders that are processed when the `server.properties` file is updated.
The following options are available for placeholders:
The syntax of placeholders is DOS-style, `%VAR%`, to avoid being processed by Docker or the shell and the following options are available:
`%VAR%`
@ -33,6 +33,10 @@ Any declared or resolved environment variable may be referenced, such as `VERSIO
LEVEL: world-%date:yyyy-MM-dd%
```
!!! warning
Placeholders are not supported when manually managing `server.properties`
## Properties
### Message of the Day

View file

@ -19,6 +19,7 @@ spec:
containers:
- name: mc
image: itzg/minecraft-server
imagePullPolicy: Always
env:
- name: EULA
value: "TRUE"