-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.production.example
More file actions
52 lines (43 loc) · 1.51 KB
/
.env.production.example
File metadata and controls
52 lines (43 loc) · 1.51 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
# Production environment for Satoshi API
# Copy to .env.production and fill in values
BITCOIN_RPC_HOST=host.docker.internal
BITCOIN_RPC_PORT=8332
BITCOIN_RPC_USER=satoshiapi
BITCOIN_RPC_PASSWORD=
CORS_ORIGINS=https://api.yourdomain.dev
API_HOST=0.0.0.0
API_PORT=9332
# Feature flags — toggle extended routers
ENABLE_EXCHANGE_COMPARE=false
ENABLE_PRICES_ROUTER=true
ENABLE_ADDRESS_ROUTER=false
ENABLE_SUPPLY_ROUTER=true
ENABLE_STATS_ROUTER=true
# Logging format ("text" or "json")
LOG_FORMAT=text
# RPC timeout in seconds
RPC_TIMEOUT=30
# Admin API key for analytics endpoints (/api/v1/analytics/*)
ADMIN_API_KEY=
# Stripe Billing (optional — endpoints return 503 if not configured)
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
STRIPE_PRICE_ID=
STRIPE_SUCCESS_URL=https://bitcoinsapi.com/billing/success
STRIPE_CANCEL_URL=https://bitcoinsapi.com/billing/cancel
# Resend (transactional email — welcome email on registration, usage alerts)
# Get API key from https://resend.com/api-keys
RESEND_API_KEY=
RESEND_FROM_EMAIL=Satoshi API <noreply@bitcoinsapi.com>
RESEND_ENABLED=false
# Upstash Redis (optional rate limiting backend — persistent, distributed)
# Get credentials from https://console.upstash.com
# Falls back to in-memory if Redis is unavailable
UPSTASH_REDIS_URL=
UPSTASH_REDIS_TOKEN=
RATE_LIMIT_BACKEND=memory
# PostHog Analytics (privacy-first landing page + registration analytics)
# Get API key from https://us.posthog.com/settings/project-api-key
POSTHOG_API_KEY=
POSTHOG_HOST=https://us.i.posthog.com
POSTHOG_ENABLED=false