add velocity
the server now utilizes the velocity proxy for - domain based connection instead of ports (called forced-hosts in velocity) - a fancy motd message indicating when only the minecraft server is down, but not the host system
This commit is contained in:
parent
3164df2579
commit
1002a471ba
13 changed files with 79 additions and 29 deletions
|
|
@ -1,12 +1,14 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Modded Minecraft Server via Podman managed by Systemd
|
Description=Modded Minecraft Server via Podman managed by Systemd
|
||||||
Documentation=https://git.nanody.de/anonoe/MMS
|
Documentation=https://git.nanody.de/anonoe/MMS
|
||||||
|
Wants=velocity.service
|
||||||
|
After=velocity.service
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
Image=git.nanody.de/anonoe/jre-alpine:latest
|
Image=git.nanody.de/anonoe/jre-alpine:latest
|
||||||
AutoUpdate=registry
|
AutoUpdate=registry
|
||||||
PublishPort=25565:25565/tcp
|
PublishPort=25566:25565/tcp
|
||||||
PublishPort=24454:24454/udp
|
PublishPort=24455:24455/udp
|
||||||
UserNS=keep-id
|
UserNS=keep-id
|
||||||
Mount=type=bind,src=/PATH/TO/server,dst=/mnt/server
|
Mount=type=bind,src=/PATH/TO/server,dst=/mnt/server
|
||||||
Mount=type=bind,src=/PATH/TO/rcon,dst=/mnt/rcon
|
Mount=type=bind,src=/PATH/TO/rcon,dst=/mnt/rcon
|
||||||
|
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
version: '3.8'
|
|
||||||
services:
|
|
||||||
jre-hl-mc-MMS:
|
|
||||||
image: alp-jre-21-hl:latest
|
|
||||||
volumes:
|
|
||||||
- ./server:/mnt/server
|
|
||||||
working_dir: /mnt/server
|
|
||||||
command: ["java", "-Xmx4G", "-Xms1G", "-jar", "minecraft_server.jar", "--nogui"]
|
|
||||||
ports:
|
|
||||||
- "25565:25565/tcp" # minecraft
|
|
||||||
- "24454:24454/udp" # simple voicechat
|
|
||||||
tty: true
|
|
||||||
# restart: unless-stopped
|
|
||||||
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
podman run \
|
|
||||||
--rm \
|
|
||||||
--name jre-hl-mc-MMS \
|
|
||||||
--tty \
|
|
||||||
--interactive \
|
|
||||||
--publish 25565:25565/tcp \
|
|
||||||
--publish 24454:24454/udp \
|
|
||||||
--volume ./server:/mnt/server \
|
|
||||||
--workdir /mnt/server \
|
|
||||||
alp-jre-21-hl:latest \
|
|
||||||
java -Xmx4G -Xms1G -jar minecraft_server.jar --nogui
|
|
||||||
|
|
||||||
4
server/server/config/FabricProxy-Lite.toml
Normal file
4
server/server/config/FabricProxy-Lite.toml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
hackOnlineMode = true
|
||||||
|
hackEarlySend = false
|
||||||
|
hackMessageChain = false
|
||||||
|
secret = "PUT SOMETHING HERE"
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
# Set this to '-1' to use the same port number that is used by the Minecraft server.
|
# Set this to '-1' to use the same port number that is used by the Minecraft server.
|
||||||
# However, it is strongly recommended NOT to use the same port number because UDP on
|
# However, it is strongly recommended NOT to use the same port number because UDP on
|
||||||
# it is also used by default for the server query. Doing so may crash the server!
|
# it is also used by default for the server query. Doing so may crash the server!
|
||||||
port=24454
|
port=24455
|
||||||
# The server IP address to bind the voice chat to
|
# The server IP address to bind the voice chat to
|
||||||
# Leave blank to use the 'server-ip' property from the 'server.properties' config file
|
# Leave blank to use the 'server-ip' property from the 'server.properties' config file
|
||||||
# To bind to the wildcard IP address, use '*'
|
# To bind to the wildcard IP address, use '*'
|
||||||
|
|
|
||||||
BIN
server/server/mods/FabricProxy-Lite-2.6.0.jar
Normal file
BIN
server/server/mods/FabricProxy-Lite-2.6.0.jar
Normal file
Binary file not shown.
BIN
server/server/mods/crossstitch-0.1.6.jar
Normal file
BIN
server/server/mods/crossstitch-0.1.6.jar
Normal file
Binary file not shown.
23
server/velocity.container
Normal file
23
server/velocity.container
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Minecraft Proxy Velocity via Podman managed by Systemd
|
||||||
|
Documentation=https://docs.papermc.io/velocity/
|
||||||
|
|
||||||
|
[Container]
|
||||||
|
Image=git.nanody.de/anonoe/jre-alpine:latest
|
||||||
|
AutoUpdate=registry
|
||||||
|
PublishPort=25565:25565/tcp
|
||||||
|
PublishPort=24454:24454/udp
|
||||||
|
UserNS=keep-id
|
||||||
|
Mount=type=bind,src=PATH/TO/velocity,dst=/mnt/server
|
||||||
|
WorkingDir=/mnt/server
|
||||||
|
PodmanArgs=--tty --interactive
|
||||||
|
Exec=java -Xms500M -Xmx500M -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15 -jar velocity.jar
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
SuccessExitStatus=0 143
|
||||||
|
TimeoutStartSec=480
|
||||||
|
TimeoutStopSec=480
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
# Start by default on boot
|
||||||
|
WantedBy=default.target
|
||||||
BIN
server/velocity/plugins/LuckPerms-Velocity-5.5.17.jar
Normal file
BIN
server/velocity/plugins/LuckPerms-Velocity-5.5.17.jar
Normal file
Binary file not shown.
BIN
server/velocity/plugins/voicechat-velocity-2.6.4.jar
Normal file
BIN
server/velocity/plugins/voicechat-velocity-2.6.4.jar
Normal file
Binary file not shown.
|
|
@ -0,0 +1,7 @@
|
||||||
|
# Simple Voice Chat proxy config v2.6.4
|
||||||
|
|
||||||
|
# The port number to use for the voice chat communication.
|
||||||
|
# Audio packets are always transmitted via the UDP protocol on the port number
|
||||||
|
# specified here, independently of other networking used for the game server.
|
||||||
|
# Set this to '-1' to use the same port number as the one used by the proxy.
|
||||||
|
port=24454
|
||||||
1
server/velocity/velocity.jar
Symbolic link
1
server/velocity/velocity.jar
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
velocity-3.4.0-SNAPSHOT-558.jar
|
||||||
39
server/velocity/velocity.toml
Normal file
39
server/velocity/velocity.toml
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
# Config version. Do not change this
|
||||||
|
config-version = "2.7"
|
||||||
|
|
||||||
|
# What should be the MOTD? This gets displayed when the player adds your server to
|
||||||
|
# their server list. Only MiniMessage format is accepted.
|
||||||
|
motd = "<#09add3>The Server is down (╯°□°)╯︵ ┻━┻"
|
||||||
|
|
||||||
|
# Should we forward IP addresses and other data to backend servers?
|
||||||
|
# Available options:
|
||||||
|
# - "none": No forwarding will be done. All players will appear to be connecting
|
||||||
|
# from the proxy and will have offline-mode UUIDs.
|
||||||
|
# - "legacy": Forward player IPs and UUIDs in a BungeeCord-compatible format. Use this
|
||||||
|
# if you run servers using Minecraft 1.12 or lower.
|
||||||
|
# - "bungeeguard": Forward player IPs and UUIDs in a format supported by the BungeeGuard
|
||||||
|
# plugin. Use this if you run servers using Minecraft 1.12 or lower, and are
|
||||||
|
# unable to implement network level firewalling (on a shared host).
|
||||||
|
# - "modern": Forward player IPs and UUIDs as part of the login process using
|
||||||
|
# Velocity's native forwarding. Only applicable for Minecraft 1.13 or higher.
|
||||||
|
player-info-forwarding-mode = "modern"
|
||||||
|
|
||||||
|
[servers]
|
||||||
|
# Configure your servers here. Each key represents the server's name, and the value
|
||||||
|
# represents the IP address of the server to connect to.
|
||||||
|
#lobby = "127.0.0.1:30066"
|
||||||
|
#factions = "127.0.0.1:30067"
|
||||||
|
#minigames = "127.0.0.1:30068"
|
||||||
|
mms = "host.containers.internal:25566"
|
||||||
|
# In what order we should try servers when a player logs in or is kicked from a server.
|
||||||
|
try = [
|
||||||
|
"mms"
|
||||||
|
]
|
||||||
|
|
||||||
|
[forced-hosts]
|
||||||
|
"nanody.de" = [
|
||||||
|
"mms"
|
||||||
|
]
|
||||||
|
"mms.nanody.de" = [
|
||||||
|
"mms"
|
||||||
|
]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue