-
Alright, so I have a bit of an advanced problem I've been struggling to solve for the past 5 hours or so. I'm building a larger-scale Minecraft network using Docker Compose (or preparing to anyway), and I'm trying to find out why the Velocity container is refusing to forward players to the Hub container. Here's my version: '3.8'
services:
#######################################################
# hub Profile - The main Minecraft hub world. Includes a Velocity proxy configured for modern forwarding, and a void world running on Paper.
main-proxy:
hostname: main-proxy
container_name: main-proxy
profiles: ["hub"]
image: itzg/bungeecord:java17
ports:
- "25565:25565"
environment:
UID: 1002 #Minecraft user
GID: 1003 #Minecraft group
TYPE: VELOCITY
VELOCITY_VERSION: latest
MEMORY: 512m
JVM_XX_OPTS: "-XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15"
PLUGINS: https://github.com/ViaVersion/ViaVersion/releases/download/4.4.2/ViaVersion-4.4.2.jar,https://github.com/ViaVersion/ViaBackwards/releases/download/4.4.2/ViaBackwards-4.4.2.jar
restart: always
volumes:
- ./servers/main-proxy:/server
links:
- main-hub
main-hub:
hostname: main-hub
container_name: main-hub
profiles: ["hub"]
image: itzg/minecraft-server:java17
ports:
- "30065:25565"
environment:
UID: 1002 #Minecraft user
GID: 1003 #Minecraft group
TYPE: PAPER
VERSION: latest
MEMORY: 1024m
USE_AIKAR_FLAGS: "TRUE"
EULA: "TRUE"
SPIGET_RESOURCES: 19254,27448,25391,102902 #ViaVersion, ViaBackwards, VoidGen, NoEncryption
#EXEC_DIRECTLY: true
# enable env variable replacement
REPLACE_ENV_VARIABLES: "true"
# define an optional prefix for env variables we want to replace
ENV_VARIABLE_PREFIX: "CFG_"
# actual variables
CFG_FORWARDING_SECRET_FILE: "/forwarding.secret"
tty: true
stdin_open: true
restart: always
volumes:
- ./servers/main-hub:/data
secrets:
forwarding_secret:
file: /forwarding.secret
. . .
# 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"
. . . and . . .
proxies:
bungee-cord:
online-mode: false
proxy-protocol: false
velocity:
enabled: true
online-mode: true
secret: ${CFG_FORWARDING_SECRET_FILE}
. . . This SHOULD just work, right? In testing, it does not.
...although I'm 100% expecting to be pointed towards an obvious and/or incomplete misconfiguration in my config. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
This might be a question better asked on Velocity forums. Without knowing Velocity, all I can question is
|
Beta Was this translation helpful? Give feedback.
This might be a question better asked on Velocity forums.
Without knowing Velocity, all I can question is
/run/secrets
but I'm not seeing that path mentioned anywhere