Spaces:
Sleeping
Sleeping
Download code/.env.example from acra-thesis/acra-backend: direct link, hf CLI and curl.
- Browser
- Download file 1.28 kB
-
https://huggingface.co/spaces/acra-thesis/acra-backend/resolve/main/code/.env.example
- Command line
-
hf download hf://spaces/acra-thesis/acra-backend/code/.env.example
-
curl -L -o .env.example https://huggingface.co/spaces/acra-thesis/acra-backend/resolve/main/code/.env.example
1.28 kB
| # ACRA backend configuration | |
| # On Render: set these in the Render dashboard Environment tab (not a committed file). | |
| # Locally: copy to code/.env and adjust as needed. | |
| # Set to false in production - requires SUPABASE_JWT_SECRET to be set. | |
| SKIP_AUTH=false | |
| # Supabase JWT secret - Supabase project → Settings → API → JWT Secret | |
| SUPABASE_JWT_SECRET= | |
| # Public base URL of this service - used to build image URLs returned by the API. | |
| # Local: http://localhost:8000 | |
| # Production: https://your-acra-backend.onrender.com | |
| BASE_URL=http://localhost:8000 | |
| # Persistent data directory - set to /data on Render (matches the Disk mount). | |
| # Leave blank locally (defaults to code/ directory). | |
| DATA_DIR= | |
| # Cloud images and normal jobs have a fixed 24-hour access limit. | |
| # Cleanup interval in seconds, capped at 60 while the server is running. | |
| PURGE_INTERVAL_SECONDS=60 | |
| # Comma-separated frontend origins allowed by CORS. | |
| # Production: your Vercel URL, e.g. https://acra.vercel.app | |
| CORS_ORIGINS=http://localhost:5173,http://localhost:3000 | |
| # Optional: override YOLO model path (default: acra_medium_v7_best.onnx, then best.pt) | |
| # SEG_MODEL_PATH=acra_medium_v7_best.onnx | |
| # Set to 1/true/yes to use today's (pre-mild) re-encoder. Default is the milder mixer. | |
| ACRA_LEGACY_REENCODING=false | |