Paper Sats: design and print paper notes that carry sats. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
79 lines
2.5 KiB
Bash
79 lines
2.5 KiB
Bash
# Copy to .env and fill in. Every key below is read by packages/core/src/config.ts.
|
|
# Empty values are treated as unset. Never commit .env.
|
|
|
|
APP_NAME="Paper Sats"
|
|
APP_URL=http://localhost:3000
|
|
# Port for the web dev/start server (apps/web/scripts/next-with-env.mjs). Keep in sync with APP_URL.
|
|
PORT=3000
|
|
|
|
# Postgres connection string (required)
|
|
DATABASE_URL=postgres://USER:PASSWORD@localhost:5433/DBNAME
|
|
|
|
# Base64 of at least 32 random bytes (required). Generate with: openssl rand -base64 32
|
|
SESSION_SECRET=
|
|
|
|
# Fees (sats)
|
|
FEE_FLAT_SATS=500
|
|
FEE_PER_NOTE_SATS=5
|
|
FEE_MIN_NOTES=1
|
|
FEE_PAYOUT_LNBITS_URL=
|
|
FEE_PAYOUT_LNBITS_INVOICE_KEY=
|
|
FEE_PAYOUT_LNBITS_ADMIN_KEY=
|
|
# Hex of at least 32 random bytes, required in production: openssl rand -hex 32
|
|
# Fee swaps derive their outputs from it, so a lost answer from a mint can be restored. Back it up.
|
|
FEE_WALLET_SEED=
|
|
# Set true only to run on purpose with no LNbits. Fees are then recorded and nothing is paid out.
|
|
PAYOUTS_DISABLED=false
|
|
# Comma-separated Cashu mint URLs (http, https, ws or wss)
|
|
FEE_ACCEPTED_MINTS=
|
|
PAYOUT_MIN_SATS=10000
|
|
|
|
# Batches and Nostr
|
|
MAX_NOTES_PER_BATCH=500
|
|
# JSON array string
|
|
DEFAULT_MINTS=[]
|
|
# Comma-separated URLs
|
|
DEFAULT_RELAYS=
|
|
DEFAULT_BLOSSOM_SERVERS=
|
|
# Addressable and unassigned in the NIP registry. Not 30078: NIP-78 says that kind isn't for public data.
|
|
DESIGN_KIND=32040
|
|
DESIGN_TAG=paper-sats-design
|
|
|
|
# Workers and admin
|
|
INDEXER_ENABLED=true
|
|
# Comma-separated npubs
|
|
ADMIN_NPUBS=
|
|
|
|
# lnurlcash note QR form: lnurlw or lnurl
|
|
LNURL_QR_FORMAT=lnurlw
|
|
# Optional web-of-trust service, off when empty
|
|
WOT_API_URL=
|
|
# Exact origins the SSRF guard allows even if private or plain http. Local test mints only. Keep empty in production.
|
|
SSRF_ALLOW_ORIGINS=
|
|
# Exact extra origins for the CSP, for local test containers only. Keep empty in production.
|
|
CSP_EXTRA_ORIGINS=
|
|
# Rate limits per hour
|
|
RATE_CHALLENGE_PER_HOUR=20
|
|
RATE_VERIFY_PER_HOUR=30
|
|
RATE_ORDERS_PER_HOUR=60
|
|
RATE_STATUS_PER_HOUR=600
|
|
RATE_FEE_PER_HOUR=120
|
|
# Optional webhook for operator alerts (fee failed, payout failed, unreadable proofs). Off when empty.
|
|
ALERT_WEBHOOK_URL=
|
|
# Shown on /terms and /privacy. Operator and contact are required in production. Get these pages reviewed.
|
|
LEGAL_OPERATOR=
|
|
LEGAL_CONTACT=
|
|
LEGAL_GOVERNING_LAW=
|
|
LEGAL_UPDATED=
|
|
# Set off only on local test servers run in production mode. Skips the unsafe configuration check.
|
|
PRODUCTION_CHECK=
|
|
|
|
# Playwright e2e port (apps/web/playwright.config.ts)
|
|
E2E_PORT=3100
|
|
|
|
# Production stack only (infra/docker-compose.prod.yml), read by docker compose itself
|
|
POSTGRES_PASSWORD=
|
|
DOMAIN=
|
|
TLS_DIR=
|
|
BACKUP_DIR=
|