@@ -36,6 +36,8 @@ class CloudControlConfig:
|
||||
login_block_seconds: int = 900
|
||||
session_cookie_secure: bool = False
|
||||
trust_proxy_headers: bool = False
|
||||
planner_token_reservation_ceiling: int = 4096
|
||||
planner_token_reservation_ttl_seconds: int = 300
|
||||
|
||||
|
||||
def load_control_config(
|
||||
@@ -115,6 +117,16 @@ def load_control_config(
|
||||
values.get("CLOUD_TRUST_PROXY_HEADERS"),
|
||||
default=False,
|
||||
),
|
||||
planner_token_reservation_ceiling=_positive_int(
|
||||
values,
|
||||
"CLOUD_PLANNER_TOKEN_RESERVATION_CEILING",
|
||||
4096,
|
||||
),
|
||||
planner_token_reservation_ttl_seconds=_positive_int(
|
||||
values,
|
||||
"CLOUD_PLANNER_TOKEN_RESERVATION_TTL_SECONDS",
|
||||
300,
|
||||
),
|
||||
)
|
||||
validate_control_config(config)
|
||||
return config
|
||||
|
||||
Reference in New Issue
Block a user