Security, code quality and frontend improvements
- Move SECRET_KEY out of docker-compose into .env (env_file), add .env.example - Add flask-limiter with 10 req/min on login route; introduce util/limiter.py - Replace direct mysql.connector.connect() calls with MySQLConnectionPool via util/db_pool.py - Fix deprecated datetime.utcnow() -> datetime.now(timezone.utc) in auth/login.py - Remove dead /api/scripts 410 route from admin.py - Add MD5 security warning in Md5Tool.jsx - Add ErrorBoundary component and wrap App.jsx - Expand README with setup guide, screenshot and project structure Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# ============================================================
|
||||
# Umgebungsvariablen für docker-compose.dev.yml
|
||||
# Kopiere diese Datei zu ".env" und passe die Werte an.
|
||||
# ============================================================
|
||||
|
||||
# JWT Secret Key
|
||||
# Ersetze diesen Wert in Produktion durch einen langen, zufälligen String,
|
||||
# z.B. generiert mit: python -c "import secrets; print(secrets.token_hex(32))"
|
||||
SECRET_KEY=dev-change-me
|
||||
|
||||
# Pfad zur Datenbankkonfigurationsdatei im Container
|
||||
# Standardwert für Docker: /config/db_config.json
|
||||
DB_CONFIG_PATH=/config/db_config.json
|
||||
Reference in New Issue
Block a user