Spaces:
Sleeping
Sleeping
Download .env.prod.example from dangkhoa2016/Nodejs-JSON-API-Server: direct link, hf CLI and curl.
- Browser
- Download file 1.32 kB
-
https://huggingface.co/spaces/dangkhoa2016/Nodejs-JSON-API-Server/resolve/main/.env.prod.example
- Command line
-
hf download hf://spaces/dangkhoa2016/Nodejs-JSON-API-Server/.env.prod.example
-
curl -L -o .env.prod.example https://huggingface.co/spaces/dangkhoa2016/Nodejs-JSON-API-Server/resolve/main/.env.prod.example
1.32 kB
| # βββ Production configuration βββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # Loaded when NODE_ENV=production | |
| # Uncomment and fill in your production values: | |
| # Server | |
| # PORT=8080 | |
| # SQLite database path (relative to project root) | |
| # DB_PATH=./storage/prod.db | |
| # Redis (optional β rate limiting falls back to in-memory if unavailable) | |
| # Option A: connection URL (takes priority over individual settings below) | |
| # Useful for cloud providers (Upstash, Redis Cloud, etc.) | |
| # REDIS_URL=redis://user:password@your-cloud-redis:6379/0 | |
| # Option B: individual settings | |
| # REDIS_HOST=127.0.0.1 | |
| # REDIS_PORT=6379 | |
| # REDIS_DB=0 | |
| # REDIS_PASSWORD= | |
| # Admin authentication key | |
| # Set to enable protected admin routes (/api/admin/*) | |
| # ADMIN_KEY=your-production-secret-admin-key | |
| # Seed data source (JSONPlaceholder-compatible API) | |
| # Override to use a different data source for seeding | |
| # SEED_API_BASE_URL=https://jsonplaceholder.typicode.com | |
| # Request body size limit (bytes, default 1 MB) | |
| # MAX_BODY_SIZE=1048576 | |
| # Default page size for pagination | |
| # DEFAULT_PAGE_SIZE=10 | |
| # Debug: log all SQL queries to stderr | |
| # DEBUG_SQL=false | |
| # Rate limiting | |
| # RATE_LIMIT_ENABLED=true | |
| # RATE_LIMIT_MAX=1000 | |
| # RATE_LIMIT_WINDOW_MS=60000 | |