Initial commit - Mold Cost Calculator Application (Security Fixed)

This commit is contained in:
Gan, Jimmy
2025-06-24 10:28:55 +08:00
commit 9b84cee5be
108 changed files with 15886 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
# Flask Configuration
FLASK_APP=run.py
FLASK_ENV=production
FLASK_DEBUG=0
# Security
SECRET_KEY=your_production_secret_key_here
# Database
DATABASE_URL=postgresql://username:password@localhost/mold_cost_calculator
# Email Configuration
MAIL_SERVER=smtp.gmail.com
MAIL_PORT=587
MAIL_USE_TLS=True
MAIL_USERNAME=your_production_email@gmail.com
MAIL_PASSWORD=your_production_email_password
MAIL_DEFAULT_SENDER=your_production_email@gmail.com
# Admin Account
ADMIN_USERNAME=admin
ADMIN_EMAIL=admin@example.com
ADMIN_PASSWORD=change_this_to_secure_password
ADMIN_COMPANY="System Administration"
# Logging
LOG_LEVEL=INFO
LOG_TO_STDOUT=False
# Redis Configuration (for rate limiting and caching)
REDIS_URL=redis://localhost:6379/0
RATELIMIT_STORAGE_URL=redis://localhost:6379/0
CACHE_REDIS_URL=redis://localhost:6379/1
# Gunicorn Configuration
WORKERS=4
THREADS=2
TIMEOUT=120
MAX_REQUESTS=1000
MAX_REQUESTS_JITTER=50