Compare commits
6 Commits
91ca9e9741
...
main
Author | SHA1 | Date | |
---|---|---|---|
d0cf0fc3c7 | |||
3ba1d3673a | |||
a71de3d502 | |||
4f0f48fcc7 | |||
2cc26e7be0 | |||
1db0fafd92 |
@ -19,7 +19,9 @@ RUN DEBIAN_FRONTEND=noninteractive apt install temurin-21-jdk -y
|
||||
# This needs to be changed to the version you wish to support.
|
||||
RUN mkdir -vp /home/mc
|
||||
RUN mkdir -vp /home/mc/minecraft
|
||||
RUN mkdir -p /home/mc/minecraft/config
|
||||
|
||||
COPY FabricProxy-Lite.toml /home/mc/minecraft/config
|
||||
#Auto Accept EULA for MC
|
||||
COPY eula /home/mc/minecraft/eula.txt
|
||||
COPY server.properties /home/mc/minecraft/server.properties
|
||||
@ -36,7 +38,6 @@ RUN chmod +x /var/mod-manager-installer.sh
|
||||
|
||||
COPY connection_manager.js /usr/bin/connections
|
||||
RUN chmod +x /usr/bin/connections
|
||||
COPY connections.json /var/connections.json
|
||||
RUN ln -s /usr/bin/connections /usr/bin/con
|
||||
|
||||
ENV PATH="/usr/bin:$PATH"
|
||||
@ -62,7 +63,6 @@ RUN data=$(node /var/tools/scripts/get_latest_fabric_version.js 1.21.1) && \
|
||||
echo "Download URL: $data" && \
|
||||
wget -O /home/mc/minecraft/server.jar "$data"
|
||||
|
||||
|
||||
RUN chmod +x -R /var/tools
|
||||
|
||||
# Install PM2
|
||||
|
5
mc-cluster-image/FabricProxy-Lite.toml
Normal file
5
mc-cluster-image/FabricProxy-Lite.toml
Normal file
@ -0,0 +1,5 @@
|
||||
hackOnlineMode = true
|
||||
hackEarlySend = true
|
||||
hackMessageChain = true
|
||||
disconnectMessage = "This server requires you to connect with Velocity."
|
||||
secret = "t5YZLo1h00Br"
|
@ -7,6 +7,9 @@ flag_file="mod-manager.init"
|
||||
if [ ! -f "$flag_file" ]; then
|
||||
/var/mod-manager-installer.sh
|
||||
echo "1.21.1" | mod-manager init
|
||||
mod-manager install 8dI2tmqs -f
|
||||
|
||||
|
||||
|
||||
|
||||
touch "$flag_file"
|
||||
|
@ -11,6 +11,6 @@ services:
|
||||
volicy-proxy:
|
||||
image: velocity:proxy
|
||||
container_name: volicy-proxy
|
||||
ports:
|
||||
- "25565:25565"
|
||||
network_mode: host
|
||||
|
||||
|
||||
|
@ -0,0 +1 @@
|
||||
t5YZLo1h00Br
|
@ -13,7 +13,7 @@ motd = "<#09add3>A Velocity Server"
|
||||
show-max-players = 500
|
||||
|
||||
# Should we authenticate players with Mojang? By default, this is on.
|
||||
online-mode = false
|
||||
online-mode = true
|
||||
|
||||
# Should the proxy enforce the new public key security standard? By default, this is on.
|
||||
force-key-authentication = true
|
||||
@ -34,11 +34,11 @@ prevent-client-proxy-connections = false
|
||||
# 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 = "NONE"
|
||||
player-info-forwarding-mode = "modern"
|
||||
|
||||
# If you are using modern or BungeeGuard IP forwarding, configure a file that contains a unique secret here.
|
||||
# The file is expected to be UTF-8 encoded and not empty.
|
||||
#forwarding-secret-file = "forwarding.secret"
|
||||
forwarding-secret-file = "forwarding.secret"
|
||||
|
||||
# Announce whether or not your server supports Forge. If you run a modded server, we
|
||||
# suggest turning this on.
|
||||
@ -75,7 +75,7 @@ enable-player-address-logging = true
|
||||
lobby = "127.0.0.1:8001"
|
||||
factions = "127.0.0.1:8002"
|
||||
minigames = "127.0.0.1:8003"
|
||||
idk = "ssh.surf:8004"
|
||||
idk = "127.0.0.1:8004"
|
||||
|
||||
# In what order we should try servers when a player logs in or is kicked from a server.
|
||||
try = [
|
||||
|
Reference in New Issue
Block a user