mirror of
https://github.com/lightningcell/flask-2fa-auth.git
synced 2026-05-26 07:08:07 +00:00
Base scripts and templates added
This commit is contained in:
43
.env.example
Normal file
43
.env.example
Normal file
@@ -0,0 +1,43 @@
|
||||
# Flask 2FA Authentication Application Environment Configuration
|
||||
# Copy this file to .env and modify the values as needed
|
||||
|
||||
# Flask Configuration
|
||||
FLASK_CONFIG=development
|
||||
FLASK_APP=run.py
|
||||
FLASK_ENV=development
|
||||
|
||||
# Security Configuration (CRITICAL: Change these in production!)
|
||||
SECRET_KEY=your-secret-key-change-this-in-production-use-secrets-manager-or-random-generator
|
||||
|
||||
# Database Configuration
|
||||
DEV_DATABASE_URL=sqlite:///dev.db
|
||||
DATABASE_URL=sqlite:///app.db
|
||||
|
||||
# Production Database Example (uncomment and modify for production)
|
||||
# DATABASE_URL=postgresql://username:password@localhost/flask_2fa_prod
|
||||
|
||||
# Application Settings
|
||||
DEBUG=True
|
||||
|
||||
# Security Headers (Production only)
|
||||
# SESSION_COOKIE_SECURE=True
|
||||
# SESSION_COOKIE_HTTPONLY=True
|
||||
# SESSION_COOKIE_SAMESITE=Lax
|
||||
|
||||
# Logging Configuration
|
||||
LOG_LEVEL=INFO
|
||||
LOG_FILE=app.log
|
||||
|
||||
# SMTP Configuration (for future email features)
|
||||
# MAIL_SERVER=smtp.gmail.com
|
||||
# MAIL_PORT=587
|
||||
# MAIL_USE_TLS=True
|
||||
# MAIL_USERNAME=your-email@gmail.com
|
||||
# MAIL_PASSWORD=your-app-password
|
||||
|
||||
# Development Notes:
|
||||
# 1. Never commit the .env file to version control
|
||||
# 2. Use strong, randomly generated SECRET_KEY in production
|
||||
# 3. Use environment-specific database URLs
|
||||
# 4. Enable HTTPS and secure cookies in production
|
||||
# 5. Consider using external secret management services
|
||||
Reference in New Issue
Block a user