-
Notifications
You must be signed in to change notification settings - Fork 163
Expand file tree
/
Copy path.env.example
More file actions
94 lines (80 loc) · 3.38 KB
/
Copy path.env.example
File metadata and controls
94 lines (80 loc) · 3.38 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# ============================================================================
# TIKKA ORACLE CONFIGURATION
# ============================================================================
# See oracle/src/config/ENVIRONMENT_VARIABLES.md for complete documentation
# ----------------------------------------------------------------------------
# SERVER CONFIGURATION
# ----------------------------------------------------------------------------
PORT=3003
NODE_ENV=development
# ----------------------------------------------------------------------------
# STELLAR NETWORK CONFIGURATION (REQUIRED)
# ----------------------------------------------------------------------------
HORIZON_URL=https://horizon-testnet.stellar.org
SOROBAN_RPC_URL=https://soroban-testnet.stellar.org
SOROBAN_RPC_FALLBACK_URLS=
NETWORK_PASSPHRASE=Test SDF Network ; September 2015
RAFFLE_CONTRACT_ID=
# ----------------------------------------------------------------------------
# KEY PROVIDER CONFIGURATION (REQUIRED)
# ----------------------------------------------------------------------------
# Options: env, aws-kms, gcp-kms
KEY_PROVIDER=env
# For KEY_PROVIDER=env (choose one):
ORACLE_SECRET_KEY=
ORACLE_PRIVATE_KEY=
# For KEY_PROVIDER=aws-kms:
# AWS_REGION=us-east-1
# AWS_KMS_KEY_ID=
# For KEY_PROVIDER=gcp-kms:
# GCP_PROJECT_ID=
# GCP_LOCATION_ID=global
# GCP_KEY_RING_ID=
# GCP_KEY_ID=
# GCP_KEY_VERSION=1
# ----------------------------------------------------------------------------
# QUEUE CONFIGURATION
# ----------------------------------------------------------------------------
REDIS_HOST=localhost
REDIS_PORT=6379
QUEUE_MAX_RETRIES=3
QUEUE_INITIAL_BACKOFF_MS=2000
QUEUE_BACKOFF_MULTIPLIER=2
QUEUE_MAX_BACKOFF_MS=60000
QUEUE_CONFIRMATION_TIMEOUT_MS=300000
QUEUE_MAX_CONCURRENCY=5
QUEUE_GENERATION_TIMEOUT_MS=30000
QUEUE_SUBMISSION_TIMEOUT_MS=120000
# ----------------------------------------------------------------------------
# VRF CONFIGURATION
# ----------------------------------------------------------------------------
# Prize amount threshold for using VRF instead of PRNG
VRF_THRESHOLD_XLM=500
# ----------------------------------------------------------------------------
# CIRCUIT BREAKER CONFIGURATION
# ----------------------------------------------------------------------------
# Number of consecutive Horizon SSE failures before the circuit opens
ORACLE_CB_FAILURE_THRESHOLD=5
# Milliseconds the circuit stays open before allowing a probe attempt
ORACLE_CB_RESET_TIMEOUT_MS=60000
# ----------------------------------------------------------------------------
# PRIORITY QUEUE CONFIGURATION
# ----------------------------------------------------------------------------
# Minimum prize amount (in XLM) for HIGH priority (Bull priority 1)
ORACLE_HIGH_VALUE_THRESHOLD_XLM=10000
# Minimum prize amount (in XLM) for MEDIUM priority (Bull priority 5)
# Must be less than ORACLE_HIGH_VALUE_THRESHOLD_XLM
ORACLE_MED_VALUE_THRESHOLD_XLM=1000
# Provider for keys: env, aws-kms, gcp-kms
KEY_PROVIDER=env
# GCP KMS Config
GCP_KMS_PROJECT=
GCP_KMS_KEY_PATH=
# Oracle Consensus Threshold
# Minimum number of oracles that must agree on the same randomness output
# Default: majority (Math.floor(N/2)+1 where N is total registered oracles)
# ORACLE_CONSENSUS_THRESHOLD=2
# Oracle Consensus Timeout (milliseconds)
# Maximum time to wait for oracle consensus before logging a warning
# Default: 30000 (30 seconds)
# ORACLE_CONSENSUS_TIMEOUT_MS=30000