mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2026-01-06 15:52:03 +00:00
Update config.yml
This commit is contained in:
@@ -188,25 +188,19 @@ resource-pack:
|
|||||||
file-to-upload: "./generated/resource_pack.zip"
|
file-to-upload: "./generated/resource_pack.zip"
|
||||||
# If you are hosting the resource pack by yourself, replace `localhost` with your server ip otherwise it would only work on your local pc
|
# If you are hosting the resource pack by yourself, replace `localhost` with your server ip otherwise it would only work on your local pc
|
||||||
# If using BungeeCord or Velocity, consider using a proxy-side plugin to handle resource pack delivery.
|
# If using BungeeCord or Velocity, consider using a proxy-side plugin to handle resource pack delivery.
|
||||||
# Read this page for more host types: https://xiao-momi.github.io/craft-engine-wiki/getting_start/set_up_host
|
# Read this page for more host types and argument explanations: https://xiao-momi.github.io/craft-engine-wiki/getting_start/set_up_host
|
||||||
hosting:
|
hosting:
|
||||||
- type: "self"
|
- type: "self"
|
||||||
ip: "localhost"
|
ip: "localhost"
|
||||||
port: 8163
|
port: 8163
|
||||||
protocol: "http"
|
protocol: "http"
|
||||||
# Blocks all requests from non-Minecraft clients.
|
|
||||||
deny-non-minecraft-request: true
|
deny-non-minecraft-request: true
|
||||||
# Generates a single-use, time-limited download link for each player.
|
|
||||||
one-time-token: true
|
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
|
strict-validation: false
|
||||||
rate-limiting:
|
rate-limiting:
|
||||||
# Maximum bandwidth per second to prevent server instability for other players during resource pack downloads
|
max-bandwidth-per-second: 5_000_000
|
||||||
max-bandwidth-per-second: 5_000_000 # 5MB/s
|
min-download-speed-per-player: 50_000
|
||||||
# Minimum guaranteed download speed per player to ensure acceptable download performance during concurrent downloads
|
qps-per-ip: 5/60
|
||||||
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
|
|
||||||
|
|
||||||
item:
|
item:
|
||||||
# [Premium Exclusive]
|
# [Premium Exclusive]
|
||||||
|
|||||||
Reference in New Issue
Block a user