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.