06Templates (apps on your server)
Velocity – Minecraft proxy from a template
Install the Velocity proxy on your VPS using a template and connect several Minecraft servers: forwarding secret, Paper settings, fixing join problems.
In short
The template installs the Minecraft proxy Velocity with the matching Java as the nh-velocity service. Players connect to the proxy, which forwards them to your Minecraft servers. At the end, you get the forwarding secret for your Paper servers.
Requirements
Section titled “Requirements”- at least 768 MB RAM, 2 GB free storage
- port 25565 free – if a Minecraft server already runs on the same server, choose 25577
Installation
Section titled “Installation”- Server Hub → your server → Templates → Velocity → Install.
- Choose the port and Start installation. After about 3 minutes, the proxy is running.
Adding servers
Section titled “Adding servers”In /opt/velocity/velocity.toml, add your Minecraft servers under [servers] (name = "IP:port") and use try to set where players go first. Then run systemctl restart nh-velocity.
On every Paper server behind it:
- In
server.properties:online-mode=false - In
config/paper-global.ymlunderproxies.velocity:enabled: true,online-mode: trueand the forwarding secret assecret.
Files and commands
Section titled “Files and commands”| What | Where |
|---|---|
| Program and settings | /opt/velocity |
| Plugins | /opt/velocity/plugins |
| Restart | systemctl restart nh-velocity |