File size: 1,021 Bytes
0f55242
 
29cfad5
0f55242
 
 
29cfad5
0f55242
 
 
 
29cfad5
0f55242
 
29cfad5
 
0f55242
308a2f4
29cfad5
0f55242
 
29cfad5
0f55242
308a2f4
0f55242
29cfad5
0f55242
 
29cfad5
0f55242
 
308a2f4
0f55242
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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