Files
xmrcheckout/.env.example
T
such-gitea 3764ffc4c2 fix(webhooks): refuse internal webhook targets and stop following redirects
Merchant-supplied webhook URLs were posted to without any host check,
redirects were followed, and the raw request error was stored and returned
to the caller. With open registration, anyone could make the service send
requests to the wallet RPC, the database, the daemon or a cloud metadata
address, and read back what the error revealed.

Every delivery path now goes through webhook_targets.post_webhook. It
accepts only http and https URLs without embedded credentials, requires
every resolved address to be public, and never follows redirects (a 3xx is
a failed delivery). WEBHOOK_ALLOWED_PRIVATE_HOSTS names exact hosts that may
resolve privately, for receivers reached over a LAN. Stored delivery errors
carry only the refusal reason or the exception class.
2026-11-18 15:40:51 -05:00

55 lines
1.8 KiB
Bash

# Database
POSTGRES_USER=xmrcheckout
POSTGRES_PASSWORD=xmrcheckout
POSTGRES_DB=xmrcheckout
DATABASE_URL=postgresql://xmrcheckout:xmrcheckout@db:5432/xmrcheckout
# Optional: Postgres backups (used by the `db-backup` Compose profile)
BACKUP_RETENTION_DAYS=7
# API authentication
API_KEYS=dev-key-1
API_KEY_ENCRYPTION_KEY=replace-with-fernet-key
RATE_PROVIDER=kraken
INVOICE_RECONCILE_INTERVAL_SECONDS=30
# Founder donation wallet (view-only)
FOUNDER_PAYMENT_ADDRESS=
FOUNDER_VIEW_KEY=
DONATIONS_ENABLED=false
# Monero wallet RPC (view-only wallet generation + subaddresses)
MONERO_WALLET_RPC_URLS=http://wallet-rpc-reconciler-1:18083,http://wallet-rpc-reconciler-2:18083,http://wallet-rpc-reconciler-3:18083
MONERO_WALLET_RPC_USER=
MONERO_WALLET_RPC_PASSWORD=
MONERO_WALLET_RPC_WALLET_PASSWORD=
MONERO_WALLET_RPC_WALLET_DIR=/wallets
# Monero daemon
# - Default: uses a third-party daemon (low setup, external dependency)
# - Local: run the bundled `monerod` service and set MONERO_DAEMON_URL=http://monerod:18081
MONERO_DAEMON_URL=http://xmr-node.cakewallet.com:18081
# Admin panel (generate with: openssl rand -base64 32 | tr -d '=' | head -c 32)
ADMIN_API_KEY=
# Webhook targets must resolve to public addresses. List exact hostnames here
# (comma separated) that may resolve to a private address, such as a receiver
# reached over the LAN. Empty refuses every private target.
WEBHOOK_ALLOWED_PRIVATE_HOSTS=
# Registration (set to false to require manual merchant onboarding)
OPEN_REGISTRATION=true
# Signup form (optional, only needed when OPEN_REGISTRATION=false)
# Cloudflare Turnstile - bot protection for signup form
TURNSTILE_SITE_KEY=
TURNSTILE_SECRET_KEY=
# Resend - email delivery for signup requests
RESEND_API_KEY=
CONTACT_EMAIL=sales@such.software
# UI
API_BASE_URL=http://api:8000
SITE_URL=https://example.com