| title | Server |
|---|---|
| description | Configure server settings, authentication, and rate limiting |
Quick reference for all available server configuration parameters:
| Parameter | Description |
|---|---|
MODE |
Execution mode |
PORT |
API server port |
BETTER_AUTH_SECRET |
Authentication secret key |
BETTER_AUTH_URL |
Base URL for authentication |
PUBLIC_RATE_LIMIT_MAX |
Maximum requests per window |
PUBLIC_RATE_LIMIT_WINDOW_MS |
Rate limit time window |
Set the execution mode for Openinary.
Available modes:
fullstack- Full application with web interface (default)api- API-only mode that automatically generates an API key on first startup
Set the port number on which the API server listens.
Examples:
3000- Default development port8080- Alternative port80- Standard HTTP port (requires root privileges)
Secret key for Better Auth authentication system.
Requirements:
- Minimum 32 characters recommended
- Should be cryptographically random
- Auto-generated in Docker if not defined
Examples:
your-custom-secret-key-here-minimum-32-chars- Generate with:
openssl rand -base64 32
Base URL of the Openinary instance used for authentication and CORS configuration.
Examples:
http://localhost:3000- Local developmenthttps://api.example.com- Production APIhttps://openinary.example.com- Custom domain
Maximum number of requests allowed per time window for public routes.
Examples:
100- Default limit (100 requests per window)200- Higher limit for high-traffic scenarios50- Lower limit for stricter control
Time window in milliseconds for rate limiting.
Examples:
60000- 1 minute (default)300000- 5 minutes1000- 1 second (very strict)
Common configurations:
60000(1 min) - Standard rate limiting3600000(1 hour) - Hourly limits