ef8b44934c
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 <noreply@anthropic.com>
18 lines
493 B
Bash
18 lines
493 B
Bash
# MySQL
|
|
MYSQL_ROOT_PASSWORD=changeme_root
|
|
MYSQL_DATABASE=bourbonacci
|
|
MYSQL_USER=bourbonacci
|
|
MYSQL_PASSWORD=changeme_db
|
|
|
|
# Backend
|
|
DATABASE_URL=mysql+aiomysql://bourbonacci:changeme_db@db:3306/bourbonacci
|
|
SECRET_KEY=changeme_generate_a_long_random_string_here
|
|
ACCESS_TOKEN_EXPIRE_MINUTES=480
|
|
|
|
# Admin account (seeded on every container start)
|
|
ADMIN_USERNAME=admin@example.com
|
|
ADMIN_PASSWORD=changeme_admin
|
|
|
|
# CORS: comma-separated list of allowed origins
|
|
ALLOWED_ORIGINS=https://yourdomain.com
|