feat(api): add rate limiting for API requests

This commit is contained in:
MingxuanGame
2025-08-28 13:51:44 +00:00
parent c7f6c76b0f
commit aa239a81fa
5 changed files with 45 additions and 3 deletions

View File

@@ -93,6 +93,7 @@ class Settings(BaseSettings):
cors_urls: list[HttpUrl] = []
server_url: HttpUrl = HttpUrl("http://localhost:8000")
frontend_url: HttpUrl | None = None
enable_rate_limit: bool = True
@property
def web_url(self):