-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
52 lines (42 loc) · 1.09 KB
/
.env.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Server Settings
APP_HOST=127.0.0.1
APP_PORT=8000
RELOAD=false
UVICORN_ROOT_PATH=/api/v1
# MongoDB Connection Settings
MONGODB_HOST=localhost
MONGODB_PORT=27017
MONGODB_DB=stac_worldpop_db
MONGODB_USERNAME=your_username
MONGODB_PASSWORD=your_password
# Redis Settings (if using Redis cache)
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_DB=0
# Logging Configuration
LOG_LEVEL=INFO # Options: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_FILE=app.log
# Search Settings
SEARCH_REQUEST_LIMIT=1000 # Must be between 1 and 10000
# API Extensions
# Comma-separated list of enabled extensions: query,sort,fields,pagination,filter
# Leave empty to enable all extensions
ENABLED_EXTENSIONS=
# Performance Settings
USE_API_HYDRATE=true
CREATE_INDEXES=true
INDEX_CREATION_TIMEOUT=60
# Cache Settings
CACHE_TTL=3600
USE_CACHE=true
# Rate Limiting
RATE_LIMIT=1000 # Requests per period, null for no limit
RATE_LIMIT_PERIOD=60 # Period in seconds
# CORS Settings
CORS_ALLOW_ORIGINS=*
CORS_ALLOW_METHODS=GET,POST,OPTIONS
CORS_ALLOW_HEADERS=*
CORS_MAX_AGE=600
# API Documentation Settings
DOCS_URL=/api.html
OPENAPI_URL=/api