Skip to main content

🛜 Self hosting

Basic Solution

The good part? It's completely free - just needs your existing server. Perfect for testing and development. But unless you've got killer bandwidth, don't use this for production environments. Resource pack downloads will hog your server's connection and might lag out other players.

resource-pack:
delivery:
hosting:
- type: "self"
- ip: "localhost"
+ ip: "Your Server Ip" # for instance 111.222.333.444
port: 8163
protocol: "http"
# Blocks all requests from non-Minecraft clients.
deny-non-minecraft-request: true
# Generates a single-use, time-limited download link for each player.
one-time-token: true
# Improved validation for deny-non-minecraft-request and one-time-token; do not enable on offline servers or validation will fail.
strict-validation: false
rate-limiting:
# Maximum bandwidth per second to prevent server instability for other players during resource pack downloads
max-bandwidth-per-second: 5_000_000 # 5MB/s
# Minimum guaranteed download speed per player to ensure acceptable download performance during concurrent downloads
min-download-speed-per-player: 50_000 # 50KB/s
# Prevent a single IP from sending too many resource pack download requests in a short time period
qps-per-ip: 5/60 # 5 requests per 60 seconds
info

The deny-non-minecraft-request setting blocks all requests from non-Minecraft clients.
As for one-time-token, it generates a single-use, time-limited download link for each player.

You can avoid using IPv4 addresses for resource pack URLs by setting a full/complete URL instead.

- type: "self"
ip: "111.222.333.444"
port: 8163
url: "https://mydomain.com:8163/"
# ...more options
caution

Don't use https if you don't have an SSL certificate.