Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
* 🧑‍💼 **CRUDAdmin**: minimal admin panel (optional)
* 🚦 ARQ background jobs (Redis)
* 🧊 Redis caching (server + client-side headers)
* 🌐 Configurable CORS middleware for frontend integration
* 🐳 One-command Docker Compose
* 🚀 NGINX & Gunicorn recipes for prod

Expand Down
19 changes: 19 additions & 0 deletions docs/getting-started/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,25 @@ DEFAULT_RATE_LIMIT_LIMIT=10 # Default: 10 requests
DEFAULT_RATE_LIMIT_PERIOD=3600 # Default: 3600 seconds (1 hour)
```

### CORS Configuration

Configure Cross-Origin Resource Sharing for your frontend:

```env
# CORS Settings
CORS_ORIGINS="*" # Comma-separated origins (use specific domains in production)
CORS_METHODS="*" # Comma-separated HTTP methods or "*" for all
CORS_HEADERS="*" # Comma-separated headers or "*" for all
```

!!! warning "CORS in Production"
Never use `"*"` for CORS_ORIGINS in production. Specify exact domains:
```env
CORS_ORIGINS="https://yourapp.com,https://www.yourapp.com"
CORS_METHODS="GET,POST,PUT,DELETE,PATCH"
CORS_HEADERS="Authorization,Content-Type"
```

### First Tier

```env
Expand Down
Loading