Files
gashboard/.env.example
2026-05-06 18:47:51 +01:00

37 lines
1.5 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) ----
# Portainer on Umbrel runs stacks inside Docker-in-Docker with host networking.
# Use Datum's real Umbrel Docker IP. Do not use datum/datum_datum_1 DNS and do
# not use host port 21000, which is Umbrel's auth proxy.
# Find it with:
# docker inspect -f '{{.NetworkSettings.Networks.umbrel_main_network.IPAddress}}' datum_datum_1
DATUM_URL=http://10.21.0.11: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
# ---- 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