20 lines
511 B
Plaintext
20 lines
511 B
Plaintext
# Server configuration
|
|
PORT=3000
|
|
DATABASE_PATH=data/recipes.db
|
|
NODE_ENV=development
|
|
|
|
# CORS configuration
|
|
# Set to specific origin in production (e.g., https://your-frontend.com)
|
|
# Use * for development only
|
|
ALLOWED_ORIGIN=*
|
|
|
|
# Rate limiting (import endpoint)
|
|
IMPORT_RATE_LIMIT_WINDOW_MS=60000
|
|
IMPORT_RATE_LIMIT_MAX_REQUESTS=10
|
|
|
|
# API authentication (optional but recommended for production)
|
|
# Set a strong random string if API_KEY is defined; write endpoints will require it
|
|
#API_KEY=
|
|
|
|
# Logging
|
|
LOG_LEVEL=info |