93bc951b6a
- Add Caddyfile: proxies to explorer:3001, domain set via $DOMAIN env var - docker-compose: new caddy service (ports 80/443/443-udp), persistent caddy_data/caddy_config volumes; remove direct explorer port binding - .env.example: replace EXPLORER_PORT with DOMAIN Set DOMAIN=localhost for local dev (HTTP), DOMAIN=your.domain.com for production (Caddy fetches Let's Encrypt cert automatically)
32 lines
1.7 KiB
Bash
32 lines
1.7 KiB
Bash
# ─── Coin ────────────────────────────────────────────────────────────────────
|
|
COIN_NAME=BitcoinPurple
|
|
COIN_SYMBOL=BTCP
|
|
# POW, POS, or Hybrid
|
|
COIN_DIFFICULTY=POW
|
|
|
|
# ─── MongoDB (internal to this stack) ────────────────────────────────────────
|
|
MONGO_HOST=mongodb
|
|
MONGO_PORT=27017
|
|
MONGO_USER=eiquidus
|
|
MONGO_PASSWORD=change-me
|
|
MONGO_DATABASE=explorerdb
|
|
|
|
# ─── Wallet RPC ───────────────────────────────────────────────────────────────
|
|
# bitcoinpurpled container is reachable on the shared 'purple' Docker network
|
|
WALLET_RPC_HOST=bitcoinpurpled
|
|
WALLET_RPC_PORT=13495
|
|
# Copy rpcuser / rpcpassword values from ~/.bitcoinpurple/bitcoinpurple.conf
|
|
WALLET_RPC_USER=
|
|
WALLET_RPC_PASS=
|
|
|
|
# ─── Explorer web ────────────────────────────────────────────────────────────
|
|
# Public domain served by Caddy (gets a free Let's Encrypt cert automatically).
|
|
# Use 'localhost' for local testing (HTTP only, no cert).
|
|
DOMAIN=explorer.example.com
|
|
# Bootswatch theme: Cerulean, Cosmo, Cyborg, Darkly, Flatly, Slate, Solar, ...
|
|
EXPLORER_THEME=Purple
|
|
|
|
# ─── Sync intervals (seconds) ────────────────────────────────────────────────
|
|
SYNC_BLOCKS_INTERVAL=120
|
|
SYNC_PEERS_INTERVAL=300
|