-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
63 lines (45 loc) · 1.81 KB
/
.env.example
File metadata and controls
63 lines (45 loc) · 1.81 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
52
53
54
55
56
57
58
59
60
61
62
63
# DistroMap API Configuration
# Copy this file to .env and adjust values as needed
# =============================================================================
# Server Settings
# =============================================================================
# Server bind address
SERVER_HOST=0.0.0.0
# Server port
SERVER_PORT=8080
# Base URL for the API (used in documentation page)
# Set this to your public URL in production (e.g., https://api.example.com)
BASE_URL=http://localhost:8080
# Database update interval in hours
UPDATE_INTERVAL=6
# Enable SSL certificate verification for upstream API calls
SSL_VERIFY_PEER=true
# =============================================================================
# CORS Settings
# =============================================================================
# Enable CORS headers
CORS_ENABLED=true
# Allowed origins (* for all)
CORS_ORIGIN=*
# Allowed HTTP methods
CORS_METHODS=GET, OPTIONS
# Allowed headers
CORS_HEADERS=Content-Type, Accept
# =============================================================================
# Caching & Performance
# =============================================================================
# Cache-Control max-age in seconds (0 to disable)
CACHE_MAX_AGE=300
# =============================================================================
# Logging & Debugging
# =============================================================================
# Enable request logging
REQUEST_LOGGING=true
# Enable debug mode (verbose logging)
DEBUG=false
# =============================================================================
# Metrics (Prometheus)
# =============================================================================
# Enable /metrics endpoint
# WARNING: Consider disabling in production or restricting access via firewall
METRICS_ENABLED=false