rk1ve

velocity

currently, minecraft server is being hosted in the cloud with crafty controller. it is a simple java server with the geysermc plugin installed. dns records created to point to the tcp and udp ports and it works just fine. to enable more options when joining the server, i looked for solutions. i came across velocity, from papermc. since papermc was the main server i was already running. to run velocity, it was very simple. for any minecraft server provider or your own hosting, download/use the velocity jar. for my case it was from crafty controller, and i had to create a minecraft proxy server. once the proxy server is created, it has to be pointed to other servers with the ‘velocity.toml’ file. before doing stuff to the server, you must run it so that you can accept the eula.

to retain geysermc compatibility, you install the plugin on the proxy server level. i have a write up on how that is configured.

for linking servers to the proxy server, the modern way is using the ‘forwarding.secret’ file, which contains a string that is defined in the configuration, and is put on the other servers. you will also have to bind the port as well, so whether it is 25565 or something else, that is the port to bind to the proxy server. i disabled forced hosts by removing the config section since i want all my users to go through the proxy. you can then set a list of servers to connect to first and which servers are defined. they are then referenced by their friendly name.

[servers]
lobby = ip:port
survival = ip:port
modded = ip:port

for modded servers like fabric or forge/neoforge, it requires a server side mod in order for it to accept the secret to connect to the proxy server.
fabric = fabricproxy-lite
forge/neoforge = proxy compatible forge

for papermc servers, the config is inside the config folder, paste the secret string in its slot and enable velocity.

a tip for online-mode is that it is enabled in velocity and the config file, but disabled in the ‘server.properties’ file.

when importing worlds into crafty, it is better to generate a fresh server, run its generation, shutdown, then import the .zip file, extract it, and rename it world.

for my instance, i had to do a few things.
one: update the crafty container since it was old and did not support java 25 for java 26.x
two: add correct java ports so that the proxy can figure which servers exist
three: added crafty roles based on server and tasks

when adding the crafty roles, it brought a great idea of how authentication works for cloudflare. since i am using authentik as the oidc for cloudflare access, i wanted to see really how it worked. and it worked fine, but it could have been better. which i went on to improve how authentication happens on the authentik side and cloudflare side.

it provides access control through oidc claims.

preserve the moment.