forked from nomos-guild/cgov-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
66 lines (56 loc) · 2.18 KB
/
.env.example
File metadata and controls
66 lines (56 loc) · 2.18 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
64
65
66
# Server Configuration
PORT=3000
# API Authentication
# Set this to enable API key authentication
# The frontend's BACKEND_API_KEY must match this value
SERVER_API_KEY=your-secure-api-key-here
# Database Configuration
# PostgreSQL connection string
# Format: postgresql://USER:PASSWORD@HOST:PORT/DATABASE
DATABASE_URL=postgresql://user:password@localhost:5432/cgov_db
# Blockfrost API (for reading blockchain data)
# Get your API key from: https://blockfrost.io/
MAINNET_BLOCKFROST_API_KEY=mainnetxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Koios API (for governance data ingestion)
# API Documentation: https://api.koios.rest/
# Get your API key from: https://koios.rest/ (if required)
KOIOS_BASE_URL=https://api.koios.rest/api/v1
KOIOS_API_KEY=your_koios_api_key_here
# Cron Job Configuration
# Enable or disable automatic proposal sync cron job
ENABLE_CRON_JOBS=true
# Cron schedule for proposal sync (cron syntax)
# Default: */5 * * * * (every 5 minutes)
# Examples:
# */5 * * * * - Every 5 minutes
# */15 * * * * - Every 15 minutes
# 0 * * * * - Every hour at minute 0
# 0 */6 * * * - Every 6 hours
PROPOSAL_SYNC_SCHEDULE=*/5 * * * *
# Cron schedule for DRep and SPO voting power sync (cron syntax)
# Default: 30 */6 * * * (every 6 hours at minute 30)
# Examples:
# 30 */6 * * * - Every 6 hours at minute 30
# 0 */12 * * * - Every 12 hours
# 0 0 * * * - Once daily at midnight
# 0 */1 * * * - Every hour
VOTER_POWER_SYNC_SCHEDULE=30 */6 * * *
# Cron schedule for epoch analytics sync (cron syntax)
# Default: 10 * * * * (every hour at minute 10)
# Examples:
# 10 * * * * - Every hour at minute 10
# 0 */2 * * * - Every 2 hours
# 0 */6 * * * - Every 6 hours
EPOCH_ANALYTICS_SYNC_SCHEDULE=10 * * * *
# Cron schedule for DRep delegation change sync (cron syntax)
# Default: 40 * * * * (every hour at minute 40)
# Examples:
# 40 * * * * - Every hour at minute 40
# 0 */2 * * * - Every 2 hours
# 0 */6 * * * - Every 6 hours
DREP_DELEGATOR_SYNC_SCHEDULE=40 * * * *
# Parallel processing concurrency for voter power sync
# Controls how many Koios API calls are made concurrently
# Default: 5, Maximum: 20
# Higher values = faster sync but more API load
VOTER_SYNC_CONCURRENCY=5