Skip to content

Commit

Permalink
docs: clarify placeholder intro (#2488)
Browse files Browse the repository at this point in the history
  • Loading branch information
itzg authored Nov 13, 2023
1 parent 85a957f commit 4c0bd61
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/configuration/server-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -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%`

Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/k8s/using-statefulset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ spec:
containers:
- name: mc
image: itzg/minecraft-server
imagePullPolicy: Always
env:
- name: EULA
value: "TRUE"
Expand Down

0 comments on commit 4c0bd61

Please sign in to comment.