Add configuration (2/2)

This commit is contained in:
timvisee
2021-11-08 15:27:48 +01:00
parent 0c3685c37c
commit fdc3c2ea3c
2 changed files with 38 additions and 1 deletions

2
.gitignore vendored
View File

@@ -1,5 +1,5 @@
.env
lazymc.toml
/lazymc.toml
/target
# Test server

37
res/lazymc.toml Normal file
View File

@@ -0,0 +1,37 @@
# lazymc configuration
[public]
# Egress address.
#
# Public IP and port users will connect to.
# Shows sleeping status, starts server on connect, and proxies to ingress server.
address_egress = "0.0.0.0:25565"
[server]
# Server directory.
directory = "."
# Command to start the server.
command = "java -Xms1G -Xmx1G -jar server.jar --nogui"
# Ingress address.
#
# Internal IP and port of server started by lazymc to proxy to.
address_ingress = "127.0.0.1:25566"
[time]
# Sleep after number of seconds.
sleep_after = 60
# Minimum time in seconds to stay online when server is started.
minimum_online_time = 60
[messages]
# MOTD when server is sleeping.
motd_sleeping = "☠ Server is sleeping\n§2☻ Join to start it up"
# MOTD when server is starting.
motd_starting = "§2☻ Server is starting...\n§7⌛ Please wait..."
# Login (kick) message when server is starting.
login_starting = "Server is starting... §c♥§r\n\nThis may take some time.\n\nPlease try to reconnect in a minute."