Files
gashboard/.env.example
2026-05-09 17:10:47 +01:00

37 lines
1.4 KiB
Plaintext

# gashboard configuration
# Copy to .env (or set in Portainer stack env) and fill in values.
# ---- Server ----
PORT=1337
NODE_ENV=production
LOG_LEVEL=info
# Origin allowed by CORS. Leave unset to disable CORS entirely (single-origin
# deploy where the API serves the SPA from the same host).
# CORS_ORIGIN=https://gashboard.example.com
# Override the static dir the API serves the built SPA from. Default resolves
# to ../web/dist relative to the running api bundle.
# STATIC_DIR=
# ---- Datum gateway (the Umbrel app we're polling) ----
# Datum's admin UI/API is published by Umbrel on the host at port 21000.
DATUM_URL=http://127.0.0.1:21000
DATUM_ADMIN_USER=admin
DATUM_ADMIN_PASSWORD=
# How often to scrape /clients (ms). Datum updates per-worker hashrate every
# few seconds; 5s is a sane default.
DATUM_POLL_INTERVAL_MS=5000
CONTRIBUTION_LEDGER_PATH=/data/contribution-ledger.json
# Sovereign mempool API used for block height, network hashrate, and difficulty.
MEMPOOL_API_URL=https://tx1138.com/api
# ---- Nostr auth ----
# Comma-separated bech32 npubs allowed to log in. Anything else is rejected
# at NIP-98 verification, before any session is issued.
NOSTR_ALLOWED_NPUBS=npub19tfnjfvxzt45jrz78mr3cldrtlg8pj5kp6gshp37582xcj7a0ctq7c8d7j,npub10wzfa7jkqj6c65xyr93hhxrns37ml9tss82jvymv8fymwdtu6cts3h6pvr
# ---- Sessions ----
# 32+ random bytes, hex. Generate with: openssl rand -hex 32
JWT_SECRET=
JWT_TTL_SECONDS=86400