Fix aiomysql pool_pre_ping crash, add rate limiting and security hardening

Remove pool_pre_ping=True to fix startup crash caused by aiomysql 0.2.0
async adapter requiring a reconnect argument SQLAlchemy does not pass.
Add slowapi rate limiting, structured logging, CORS config, backend
health check, and nginx security headers.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
derekcandClaude Sonnet 4.6 committed 2026-05-25 00:44:23 -07:00
1 parent 866c2e0bed
commit ef8b44934c
10 files changed
+67 -11

No files matched your search

+1
View File
@@ -8,6 +8,7 @@ class Settings(BaseSettings):
algorithm: str = "HS256"
admin_username: str
admin_password: str
allowed_origins: str = "http://localhost"
class Config:
env_file = ".env"