-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy path.env.e2e.example
More file actions
111 lines (84 loc) · 5.82 KB
/
Copy path.env.e2e.example
File metadata and controls
111 lines (84 loc) · 5.82 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# ──────────────────────────────────────────────────────────────────────────────
# E2E Test Environment Variables
#
# Copy this file to .env.e2e and fill in the values for running E2E tests
# against Stellar testnet.
#
# IMPORTANT: Never commit .env.e2e with real secret keys to version control!
# ──────────────────────────────────────────────────────────────────────────────
# ── Test Account ──────────────────────────────────────────────────────────────
# Stellar testnet account secret key (required)
# Generate at: https://laboratory.stellar.org/#account-creator
# Fund with: curl "https://friendbot.stellar.org?addr=YOUR_PUBLIC_KEY"
E2E_TEST_SECRET_KEY=SXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# ── Stellar / Soroban ────────────────────────────────────────────────────────
# Network to connect to (must be testnet for E2E)
STELLAR_NETWORK=testnet
# Testnet RPC endpoint
SOROBAN_RPC_URL=https://soroban-testnet.stellar.org
# Testnet Horizon endpoint
HORIZON_URL=https://horizon-testnet.stellar.org
# Deployed Predictify contract ID on testnet (required)
# Deploy contract and get ID before running E2E tests
PREDICTIFY_CONTRACT_ID=CXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# ── Database ──────────────────────────────────────────────────────────────────
# Test database connection string (required)
# Use a separate database from development and production
DATABASE_URL=postgres://postgres:postgres@localhost:5432/predictify_e2e
# PostgreSQL pool settings
PG_POOL_MAX=10
PG_STATEMENT_TIMEOUT_MS=5000
# ── Redis ─────────────────────────────────────────────────────────────────────
# Redis connection for queues and caching
REDIS_URL=redis://localhost:6379
# ── JWT ───────────────────────────────────────────────────────────────────────
# JWT secret for test authentication (minimum 32 characters)
JWT_SECRET=e2e-test-jwt-secret-that-is-at-least-32-characters-long-for-security
# JWT issuer and audience for E2E tests
JWT_ISSUER=predictify-e2e-test
JWT_AUDIENCE=predictify-e2e-test-app
# Token lifetime in seconds (3600 = 1 hour)
JWT_TTL_SECONDS=3600
# ── Application ───────────────────────────────────────────────────────────────
# Must be 'test' for E2E tests
NODE_ENV=test
# Port for test server
PORT=3001
# Log level: fatal | error | warn | info | debug | trace
LOG_LEVEL=info
# ── Rate Limiting ─────────────────────────────────────────────────────────────
# Disable rate limiting for E2E tests
ANON_RATE_LIMIT_WINDOW_MS=60000
ANON_RATE_LIMIT_MAX=10000
# Disable captcha for E2E tests
CAPTCHA_THRESHOLD=0
CAPTCHA_WINDOW_MS=60000
# Trust proxy (set to true if running behind reverse proxy)
TRUST_PROXY=false
# ── Indexer ───────────────────────────────────────────────────────────────────
# Indexer polling interval in milliseconds
INDEXER_POLL_INTERVAL_MS=5000
# Starting ledger for indexer (0 = latest)
INDEXER_START_LEDGER=0
# Ledger rewind for reorg safety
INDEXER_REWIND_LEDGERS=100
# Backfill chunk size
INDEXER_BACKFILL_CHUNK_SIZE=500
# Gap scan interval in milliseconds
INDEXER_GAP_SCAN_INTERVAL_MS=60000
# ── Admin ─────────────────────────────────────────────────────────────────────
# Comma-separated list of admin Stellar addresses (optional)
ADMIN_ALLOWLIST=
# ── Observability ─────────────────────────────────────────────────────────────
# Metrics authentication token (optional)
METRICS_AUTH_TOKEN=
# ── Webhooks ──────────────────────────────────────────────────────────────────
# Webhook signing secret (optional for E2E)
WEBHOOK_SIGNING_SECRET=e2e-webhook-secret
# ── Worker ────────────────────────────────────────────────────────────────────
# Worker heartbeat interval (must be <= JWT_TTL_SECONDS / 2)
WORKER_HEARTBEAT_SECONDS=30
# ── Reconciliation ────────────────────────────────────────────────────────────
# Enable/disable reconciliation (optional for E2E)
RECONCILIATION_ENABLED=false
RECONCILIATION_SCHEDULE=0 2 * * *