Make RCON Data Bridge configuration sandbox-tunable and refactor constants access

This commit is contained in:
2026-08-27 16:11:00 +02:00
parent 806bd8ae6a
commit 2aaa327853
10 changed files with 123 additions and 82 deletions

View File

@@ -0,0 +1,49 @@
VERSION = 1,
option RconDataBridge.DebugSelfTest
{
type = boolean,
default = true,
page = RconDataBridge,
translation = RconDataBridge_DebugSelfTest,
}
option RconDataBridge.PollEveryTicks
{
type = integer,
min = 1,
max = 300,
default = 30,
page = RconDataBridge,
translation = RconDataBridge_PollEveryTicks,
}
option RconDataBridge.IdempotencyTtlSeconds
{
type = integer,
min = 1,
max = 3600,
default = 60,
page = RconDataBridge,
translation = RconDataBridge_IdempotencyTtlSeconds,
}
option RconDataBridge.RateLimitMaxRequests
{
type = integer,
min = 1,
max = 1000,
default = 10,
page = RconDataBridge,
translation = RconDataBridge_RateLimitMaxRequests,
}
option RconDataBridge.RateLimitWindowSeconds
{
type = integer,
min = 1,
max = 3600,
default = 10,
page = RconDataBridge,
translation = RconDataBridge_RateLimitWindowSeconds,
}