Spaces:
Sleeping
Sleeping
| # Database Configuration | |
| # Option A: Provide full URI (takes precedence if set) | |
| # DATABASE_URI=postgresql+asyncpg://user:password@localhost:5432/dbname | |
| # DATABASE_URL=postgresql+asyncpg://user:password@localhost:5432/dbname | |
| # Option B: Provide split components (used to construct the URI) | |
| DB_PROTOCOL=postgresql+asyncpg | |
| DB_USER=your-db-user | |
| DB_PASSWORD=your-db-password | |
| DB_HOST=localhost | |
| DB_PORT=5432 | |
| DB_NAME=dbname | |
| # Optional: default schema via search_path (appends ?options=-csearch_path=<schema>) | |
| # DB_SCHEMA=public | |
| # Redis/Cache Configuration | |
| CACHE_URI=redis://localhost:6379 | |
| CACHE_K=your-redis-password | |
| # Cache Key Prefixes (Optional - defaults provided) | |
| CART_KEY_PREFIX=cart | |
| ORDER_KEY_PREFIX=order | |
| APPOINTMENTS_KEY_PREFIX=appointments | |
| # JWT Configuration | |
| JWT_SECRET_KEY=your-super-secret-jwt-key-change-in-production | |
| JWT_ALGORITHM=HS256 | |
| JWT_ACCESS_TOKEN_EXPIRE_MINUTES=30 | |
| # Security Configuration | |
| ALLOWED_HOSTS=localhost,127.0.0.1,yourdomain.com | |
| CORS_ORIGINS=http://localhost:3000,http://127.0.0.1:3000,https://yourdomain.com | |
| # Rate Limiting Configuration | |
| RATE_LIMIT_CALLS=100 | |
| RATE_LIMIT_PERIOD=60 |