grammo / .env.example
kaeizen's picture
update key
308a2f4
# Grammo Backend - Example .env
# Copy this file to .env and fill in the values as needed.
# --- Required ---
# Django Secret Key (generate one with the command in README)
SECRET_KEY=
# HuggingFace API Token (any of these will be picked up; preferred shown first)
HUGGINGFACEHUB_API_TOKEN=
# HF_TOKEN=
# HF_API_TOKEN=
# --- Core Runtime ---
# Debug mode (default: True)
DEBUG=True
# App mode: "development" (default) or "production"
BUILD_MODE=development
# Port used only when running `python app.py` (Hugging Face Spaces)
# PORT=7860
# --- Production-only ---
# When BUILD_MODE=production, set these appropriately
# Comma-separated (no spaces)
# ALLOWED_HOSTS=yourdomain.com,www.yourdomain.com
# Comma-separated full origins (scheme + host)
# CSRF_TRUSTED_ORIGINS=https://yourdomain.com,https://www.yourdomain.com
# Notes:
# - Security and CORS flags are derived automatically from BUILD_MODE in settings.py
# - Do not set SESSION_COOKIE_SECURE, CSRF_COOKIE_SECURE, CORS_ALLOW_ALL_ORIGINS, or SECURE_* directly