Skip to content

Commit 9ad5811

Browse files
Merge pull request #12 from software-artificer/stable-cookie-key
Document config.yml
2 parents 16cebe1 + 2668a78 commit 9ad5811

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

config.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,37 @@
11
---
2+
# The host:port pair for the server to listen on. Required.
23
listen_on: 127.0.0.1:9753
4+
# Path to the directory that contains minecraft worlds. Required.
35
worlds_path: /var/lib/minecraft/worlds
4-
current_world_name: current_world
5-
server_socket_path: /run/minecraft/minecraft.socket
6+
# A path to the YAML file that contains users database. Required.
7+
# Note: This file must be writeable for the program to work properly.
68
users_file_path: /var/lib/minecraft/users.yml
9+
# The base public URL for the web server. Required.
10+
# This is required to generate enrollment links.
711
base_url: http://127.0.0.1:9753/
12+
# A minimum password length that the user can create when enrolling into the
13+
# system. Optional. Default is 10.
814
min_password_length: 10
15+
# A maximum password lenght that the user can create when enrolling into the
16+
# system. Optional. Default is 128.
917
max_password_length: 128
18+
# A master key that is used to derive a signing key for cookies. Optional.
19+
# By default a new key will be generated when the server starts. Note, that
20+
# omitting this key will mean all existing cookies will be invaidated after a
21+
# server restart.
1022
cookie_key: NKZW9j1Q7ABNv01xF5NSI3gmyKDaTrVb
23+
# A path to the `server.properties` file from the Minecraft server. Required.
24+
# This is used to obtain information about the RCON socket location and
25+
# credentials used to connect. Required.
26+
server_properties_path: path::PathBuf,
27+
# A path to the private key for the TLS certificate to use for serving the web
28+
# interface using HTTPS protocol. Optional. Must be specified if the
29+
# `tls_chain` value is set.
30+
tls_key: Option<path::PathBuf>,
31+
# A path to the certificate chain for the TLS certificate to use for serving
32+
# the web interface using the HTTPS protocol. Optional. Must be specified if
33+
# the `tls_key` value is set.
34+
tls_chain: Option<path::PathBuf>,
35+
# A number of web workers to run. Optional. By default use a single worker per
36+
# core available on the system.
37+
worker_count: Option<num::NonZeroUsize>,

0 commit comments

Comments
 (0)