You've already forked Arcturus-Morningstar-Extended
mirror of
https://github.com/duckietm/Arcturus-Morningstar-Extended.git
synced 2026-06-19 06:56:19 +00:00
docs(config): document new networking/threading keys from the hardening batch
Add commented examples for the config keys introduced by this PR so operators can discover and tune them (defaults apply if unset): - ws.ip.header.trusted (trusted reverse-proxy gate for the forwarded-IP header) - io.packet.handler.threads (game packet-handler pool, off the Netty I/O loop) - auth.http.pool.size (dedicated /api/auth/* worker pool) - io.netty.allocator.pooled (opt-in pooled ByteBuf allocator)
This commit is contained in:
@@ -68,3 +68,9 @@ login.news.limit=5
|
|||||||
### ws.port=2096
|
### ws.port=2096
|
||||||
### ws.whitelist=localhost #Comma-separated whitelist of allowed origins. Supports wildcards: *.example.com, * (allow all)
|
### ws.whitelist=localhost #Comma-separated whitelist of allowed origins. Supports wildcards: *.example.com, * (allow all)
|
||||||
### ws.ip.header=X-Forwarded-For #Header name for real client IP when behind a proxy (e.g., X-Forwarded-For, CF-Connecting-IP). Leave empty if not using a proxy.
|
### ws.ip.header=X-Forwarded-For #Header name for real client IP when behind a proxy (e.g., X-Forwarded-For, CF-Connecting-IP). Leave empty if not using a proxy.
|
||||||
|
### ws.ip.header.trusted= #Comma-separated trusted reverse-proxy IPs/prefixes (entries ending in '.' or ':' are prefix ranges, e.g. 10.0.0.) allowed to set ws.ip.header. Loopback (127.0.0.1/::1) is ALWAYS trusted; default-deny otherwise so the forwarded header can't be spoofed from the open net.
|
||||||
|
|
||||||
|
#Performance / concurrency (optional — sensible defaults apply if unset; adjust in the Database).
|
||||||
|
### io.packet.handler.threads=24 #Game packet-handler pool size; runs game handlers OFF the Netty I/O loop. Default max(16, 2 x CPU cores).
|
||||||
|
### auth.http.pool.size=16 #Dedicated worker pool for the /api/auth/* HTTP endpoints (BCrypt/JDBC/Turnstile/SMTP run off the event loop). Default 16.
|
||||||
|
### io.netty.allocator.pooled=false #Set true to opt into Netty's pooled ByteBuf allocator. Default false (unpooled-heap).
|
||||||
|
|||||||
Reference in New Issue
Block a user