-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
17 lines (13 loc) · 902 Bytes
/
Copy pathenv.example
File metadata and controls
17 lines (13 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copy to .env.local for Vite. With `npm run dev`, `/api` is proxied to Django (port 8000).
VITE_UNIDADES_JSON_URL=/api/unidades
# Django — required for production deployment
# DJANGO_SECRET_KEY is REQUIRED in production. The built-in fallback is intentionally
# insecure ("django-insecure-…") and must never be used outside local development.
# Generate one with: python -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())"
DJANGO_SECRET_KEY=replace-with-a-strong-random-secret-key
# Set to 1 only for local development — never in production (exposes stack traces and DB queries)
# DJANGO_DEBUG=1
# Optional: custom DB path (defaults to gecan.db in the project root)
# GECAN_DB=gecan.db
# Optional: comma-separated allowed CORS origins (defaults cover localhost:8080 and localhost:5173)
# GECAN_CORS=http://localhost:8080,http://127.0.0.1:8080