-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
51 lines (40 loc) · 1.47 KB
/
.env.example
File metadata and controls
51 lines (40 loc) · 1.47 KB
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
# DigitalChild API Configuration
# Copy this file to .env and update with your settings
# Flask Environment
# Options: development, production, testing
FLASK_ENV=development
# Secret Key (REQUIRED in production)
# Generate with: python -c "import secrets; print(secrets.token_hex(32))"
SECRET_KEY=your-secret-key-here
# API Keys (comma-separated, REQUIRED in production)
# Generate keys with: python -c "import secrets; print(secrets.token_urlsafe(32))"
API_KEYS=key1,key2,key3
# Development Server Settings
DEV_HOST=127.0.0.1
DEV_PORT=5000
# CORS Origins (comma-separated)
# For development, allow localhost with different ports
CORS_ORIGINS=http://localhost:3000,http://localhost:5173
# Caching Configuration
# Options: SimpleCache (dev), RedisCache (prod)
CACHE_TYPE=SimpleCache
CACHE_DEFAULT_TIMEOUT=300
# Redis URL (for production caching and rate limiting)
# CACHE_REDIS_URL=redis://localhost:6379/0
# RATELIMIT_STORAGE_URL=redis://localhost:6379/1
# Rate Limiting
# Format: "number per period" (e.g., "100 per hour", "10 per minute")
RATELIMIT_DEFAULT=100 per hour
RATELIMIT_AUTHENTICATED=1000 per hour
# Data File Paths (relative to project root)
# Leave commented to use defaults from api/config.py
# METADATA_FILE=data/metadata/metadata.json
# SCORECARD_FILE=data/scorecard/scorecard_main.xlsx
# TAGS_CONFIG_DIR=configs
# EXPORTS_DIR=data/exports
# Pagination Defaults
DEFAULT_PAGE_SIZE=20
MAX_PAGE_SIZE=100
# Logging
# Options: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_LEVEL=INFO