1 parent 6910373 commit 7f719e2Copy full SHA for 7f719e2
1 file changed
app/infra/config.py
@@ -70,6 +70,18 @@ class Settings(BaseSettings):
70
cors_origins: list[str] = []
71
"""Extra allowed CORS origins for a split frontend."""
72
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
85
86
@lru_cache(maxsize=1)
87
def get_settings() -> Settings:
0 commit comments