ENISE / .env.example
tiffank1802
Fix production deployment: remove exposed credentials, improve startup script, add WhiteNoise middleware
f869576
# Django Configuration
DEBUG=False
SECRET_KEY=generate-a-strong-secret-key-here
ALLOWED_HOSTS=localhost,127.0.0.1,*
CSRF_TRUSTED_ORIGINS=http://localhost:8000,http://127.0.0.1:8000
# Database Configuration (optional - defaults to SQLite)
# DATABASE_ENGINE=sqlite3 # or 'postgresql' for PostgreSQL
# DB_NAME=enise
# DB_USER=postgres
# DB_PASSWORD=your_password
# DB_HOST=localhost
# DB_PORT=5432
# Appwrite Configuration
APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1
APPWRITE_PROJECT_ID=your_project_id
APPWRITE_API_KEY=your_api_key
APPWRITE_DATABASE_ID=enise_db
# MongoDB Configuration (optional, for file storage)
# MONGO_DB_HOST=localhost
# MONGO_DB_PORT=27017
# MONGO_DB_USER=your_username
# MONGO_DB_PASSWORD=your_password
# MONGO_DB_NAME=enise_filesystem
# Security Settings for Production (HF Spaces)
SECURE_HSTS_SECONDS=31536000
SECURE_HSTS_INCLUDE_SUBDOMAINS=True
SECURE_SSL_REDIRECT=False
SESSION_COOKIE_SECURE=False
CSRF_COOKIE_SECURE=False