Standalone Self-Hosted Relay · Beta 13
Your domain. Your relay.
A standalone Java application for your VPS or dedicated server. It serves the voice website and connects multiple Minecraft backends to their browser users. The relay machine does not need Minecraft.
Version 0.2.9-beta.13 · Java 21 or newer. Downloads are provided directly by Byterider. This is a beta: test on a separate network first. The managed Byterider relay remains the default.
Requirements
- A VPS/dedicated server with Java 21+, a domain, and HTTPS through Nginx or Caddy.
- BSV and Simple Voice Chat on each backend; Velocity/BungeeCord are optional companions.
- New matching BSV backend/proxy builds supporting private admission. Earlier Beta 13 files do not support it. Plugin downloads are on Modrinth.
Managed relay uses Byterider infrastructure. Self-hosting uses your machine and domain. Direct mode is a third option: publishing one plugin's embedded webserver directly.
1. Download and start
- Create a dedicated directory and download both files.
- Verify SHA-256; the result must be
OK. - Start the JAR. It creates
relay.ymlanddata/.
mkdir bsv-relay cd bsv-relay curl -fLO https://voice.byterider.xyz/downloads/BedrockSimpleVoice-Relay.jar curl -fLO https://voice.byterider.xyz/downloads/BedrockSimpleVoice-Relay.jar.sha256 sha256sum -c BedrockSimpleVoice-Relay.jar.sha256 java -Xms128M -Xmx512M -jar BedrockSimpleVoice-Relay.jar
Open http://localhost:8090 locally. Stop with Ctrl+C, then edit the existing server section in relay.yml:
server: bind-address: "127.0.0.1" port: 8090 public-url: "https://voice.example.com" data-directory: "./data"
Do not add a second section with the same name. Validate and restart:
java -jar BedrockSimpleVoice-Relay.jar --check-config java -Xms128M -Xmx512M -jar BedrockSimpleVoice-Relay.jar
A 512 MiB heap is a starting point for small installations, not a player-capacity promise. Allow additional memory for the OS, native allocations and reverse proxy; test realistic load and your Internet path.
2. Configure private admission
The first start generates a random secret in relay.yml. Copy its network ID and secret into protected backend configuration. Never share it in chat, screenshots or support tickets.
mode: self-hosted authentication: network-id: "default-network" secret: "automatically-generated-secret" auto-register: true
Extend the existing Bukkit/Folia config.yml:
server:
connection-mode: relay
relay:
mode: self-hosted
url: "wss://voice.example.com/relay/server"
public-url: "https://voice.example.com"
network-id: "default-network"
secret: "same-secret-as-the-relay"
reconnect-seconds: 5On Fabric use the same nested keys in config.json. Restart Minecraft after switching modes. Check /voice diagnose and use a fresh code or QR code from /voice.
The embedded plugin webserver remains active for local voice processing without a public extra port. Each backend needs its own data/relay-identity.json; never copy it between installations.
3. Set up a proxy network
Install BSV and Simple Voice Chat on every backend and the matching BSV companion only on Velocity or BungeeCord/Waterfall. Relay, proxy and backends must use the same network ID and secret.
BSV proxy configuration:
network: id: "my-network" secret: "same-secret-as-the-relay" relay-mode: "self-hosted" relay-url: "wss://voice.example.com/relay/server" handoff-timeout-seconds: 10 backend-freshness-seconds: 45
Every backend: keep the relay addresses from the previous chapter, set server.relay.secret: "", and configure:
network: enabled: true proxy: velocity network-id: "my-network" backend-id: "survival" shared-secret: "same-secret-as-the-relay" handoff-timeout-seconds: 10
Use a unique ID such as creative on the other backend, matching the proxy's server list exactly. BungeeCord/Waterfall use proxy: bungeecord. With networking enabled, private admission uses the ID and secret from this network section.
Configure secure player forwarding and Floodgate data first, then check /bsvnetwork. Empty backends announce readiness over their persistent relay connection. A switch opens a new authenticated browser tunnel to the destination and reuses the audio capture. Groups remain backend-local; this does not create cross-server voice mixing.
The private relay operator knows the provisioned network key and is trusted as a network administrator. The managed relay still does not receive it. See proxy identity setup for forwarding details.
4. Provide HTTPS
Point your domain's DNS records to the host. Only the reverse proxy exposes ports 80/443; keep the relay HTTP port private. server.public-url must match the HTTPS origin exactly, without a subdirectory.
Caddy
voice.example.com {
reverse_proxy 127.0.0.1:8090
}Nginx
Inside a server block with a valid TLS certificate:
location / {
proxy_pass http://127.0.0.1:8090;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 660s;
proxy_buffering off;
access_log off;
}For a local proxy, configure relay.yml:
reverse-proxy: trusted-proxies: "127.0.0.1/32,::1/128"
Never trust every IP. Cloudflare requires a correctly maintained real-IP chain at the edge. Check https://voice.example.com/readyz and the browser WebSocket upgrade. Public microphone access requires valid HTTPS.
No Byterider legal texts are served in self-hosted mode. Configure your own legal pages in data/website.json.
Your own website and legal pages
The standalone relay creates data/website.json. The plugin creates website.json next to config.yml (Fabric: config.json). Edit this file and restart the relay or Minecraft server.
Legal pages are disabled by default. Set enabled to true and enter your own text. Optional englishText falls back to the main text. Plain text only, not HTML; use \n for line breaks. The example is not a completed legal notice or privacy policy.
{
"site": {
"title": "My Minecraft network",
"welcome": "Welcome to voice chat!",
"accentColor": "#82d49a"
},
"pages": {
"info": true,
"docs": true,
"status": true
},
"legal": {
"imprint": {
"enabled": true,
"text": "Your own operator information.\nAnother line.",
"englishText": "Your operator information."
},
"privacy": {
"enabled": true,
"text": "Your own accurate privacy information.",
"englishText": "Your privacy information."
}
}
}Customize title, welcome message, accent color and visibility of Info, Docs and Status. The plugin download remains visible. Each operator is responsible for the content and privacy information of their own self-hosted service.
Docker without source access
Download the relay JAR into a directory and create this Dockerfile next to it.
FROM eclipse-temurin:21-jre WORKDIR /app COPY BedrockSimpleVoice-Relay.jar /app/relay.jar USER 10001:10001 ENTRYPOINT ["java", "-Xms128M", "-Xmx512M", "-jar", "/app/relay.jar", "--config", "/config/relay.yml"]
docker build -t bsv-relay:local . docker volume create bsv-relay-config docker run --rm --user 0 -v bsv-relay-config:/config eclipse-temurin:21-jre chown 10001:10001 /config docker run -d --name bsv-relay --restart unless-stopped \ -p 127.0.0.1:8090:8090 \ -e BSV_RELAY_BIND=0.0.0.0 \ -v bsv-relay-config:/config bsv-relay:local
Set your HTTPS domain in /config/relay.yml, then restart the container. Keep the volume across updates: it contains configuration, secret, website settings and databases. Stop the container before a file-copy backup.
Operations and troubleshooting
Stop the relay before a file-copy backup. Back up relay.yml and all of data/. Verify the new JAR, replace it and restart. A single-process update briefly closes active connections; plugins and browsers attempt to reconnect.
Registration storage migrates from schema 1 to 2. Rolling back to an older build requires the matching database backup. Do not delete databases or installation identities to fix a connection.
- Backend/proxy 403: check ID, secret, self-hosted mode, matching new JARs and system clocks.
- Proxy channel not ready: first start a network-enabled backend; the proxy retries.
- ERR_SSL_PROTOCOL_ERROR: do not send HTTPS directly to the internal HTTP port.
- Invalid code: generate a fresh code on the current backend and check the domain.
- Backend replaced: every installation needs its own relay identity.
- No microphone: check HTTPS and browser/OS permissions.
Signatures, one-use nonces, rate limits, exact browser origins and bounded queues protect authentication and resources. Nonces are process-local; WSS and protected proxy logs remain essential. The Java service is not DDoS protection.
Acceptance: connect two backends, test real speech both ways, PTT/groups/muting, switch through the proxy and test speech again. Check browser/backend reconnects, Android/iOS and incorrect secrets separately. Automated protocol tests do not establish audible voice quality.
Bedrock Simple Voice