Skip to content

Commit 7f719e2

Browse files
authored
Update config.py
1 parent 6910373 commit 7f719e2

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎app/infra/config.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,18 @@ class Settings(BaseSettings):
7070
cors_origins: list[str] = []
7171
"""Extra allowed CORS origins for a split frontend."""
7272

73+
log_level: str = "INFO"
74+
"""Root level for the ``paw`` logger tree."""
75+
log_json: bool = False
76+
"""Emit one JSON object per log line (for log shippers) vs. text."""
77+
78+
rate_limit_window_s: float = 60.0
79+
"""Sliding window for rate limits (seconds)."""
80+
rate_limit_runs: int = 20
81+
"""Max run submissions per user per window (the cost-incurring path)."""
82+
rate_limit_auth: int = 10
83+
"""Max login/register attempts per client IP per window."""
84+
7385

7486
@lru_cache(maxsize=1)
7587
def get_settings() -> Settings:

0 commit comments

Comments
 (0)