Skip to content

Commit

Permalink
update default config
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhaillav committed Mar 24, 2024
1 parent 2bed19a commit 6d31c6d
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions example.config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,28 @@ RemoteAddress = "localhost:19133"
Timeout = 60
# Time in second of waiting before sending ping packet (and get motd) to origin server
MotdGetInterval = 10
# Unconnected pong message that will return if proxy failed to fetch that from origin server
# SERVER_UNIQUE_ID, PORT_V_4, PORT_V_6 WILL BE REPLACED TO CORRECT ONES
OfflinePongMessage = "MCPE;§c§lOffline !(;618;1.20.31;0;10;SERVER_UNIQUE_ID;Bedrock level?;Survival;1;PORT_V_4;PORT_V_6;1;"

[OfflineMotd]
# Motd that proxy will retrun if upstream server if online (or send invalid pong packet)
Motd = '§c§lOffline'
# Protocol version (e.g. 618) that proxy will return if upstream server if online (or send invalid pong packet)
ProtocolVersion = 1
# Version name (e.g. 1.20.31) that proxy will return if upstream server if online (or send invalid pong packet)
VersionName = '1.0.0'
# Level name that proxy will return if upstream server if online (or send invalid pong packet)
LevelName = 'Powered by TheStoneProxy'

[Api]
# Whether use api server
UseApiServer = true
UseApiServer = false
# Address of api server
ApiServerAddress = ":3030"
# Array of ip addresses that can use api. Keep it empty to allow any ip address
ApiWhitelist = ["[::1]"]

[Metrics]
# Whether use prometheus server
UsePrometheus = true
UsePrometheus = false
# Address of prometheus server
PrometheusAddress = ":3031"
# Token for auth request to metrics server. Keep it empty to disable auth
Expand Down

0 comments on commit 6d31c6d

Please sign in to comment.