Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions caddy/Caddyfile.mainnet
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,10 @@
explorer.mainnet.drivechain.info {
reverse_proxy localhost:8080
}

# The real Esplora REST API, straight from electrs (not mempool-web's partial
# shim at explorer.mainnet.drivechain.info/api). electrs already sets
# --cors=*, so this is safe to hit directly from browser JS.
esplora.mainnet.drivechain.info {
reverse_proxy 127.0.0.1:3000
}
6 changes: 5 additions & 1 deletion docker-compose.mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ services:
- source: bitcoind-mainnet-cookie
target: /daemon-dir/.cookie
ports:
- 3000:3000 # Esplora REST API
# Esplora REST API, bound to loopback only. The host's systemd Caddy
# picks it up here and re-exposes it publicly over HTTPS at
# esplora.mainnet.drivechain.info (see caddy/Caddyfile.mainnet). Not
# published on 0.0.0.0 — Caddy is the only intended consumer.
- "127.0.0.1:3000:3000"
# Electrum RPC, bound to loopback only. The host's systemd Caddy picks it
# up here and re-exposes it publicly: plaintext on :50001 and TLS on :50002
# (see caddy/Caddyfile). Not published on 0.0.0.0 — Caddy is the only
Expand Down
Loading