mirror of
https://github.com/Such-Software/wowcheckout.git
synced 2026-12-02 12:33:58 +01:00
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.
56 lines
1.8 KiB
Bash
56 lines
1.8 KiB
Bash
# Database
|
|
POSTGRES_USER=wowcheckout
|
|
POSTGRES_PASSWORD=wowcheckout
|
|
POSTGRES_DB=wowcheckout
|
|
DATABASE_URL=postgresql://wowcheckout:wowcheckout@db:5432/wowcheckout
|
|
|
|
# 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=nonlogs
|
|
# Maximum age for a last-known-good quote when both fresh providers fail. Set 0 to fail closed.
|
|
RATE_STALE_TTL_SECONDS=300
|
|
INVOICE_RECONCILE_INTERVAL_SECONDS=30
|
|
|
|
# Founder donation wallet (view-only)
|
|
FOUNDER_PAYMENT_ADDRESS=
|
|
FOUNDER_VIEW_KEY=
|
|
DONATIONS_ENABLED=false
|
|
|
|
# Wownero 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
|
|
|
|
# Wownero daemon
|
|
# Required. Use an operator-controlled daemon URL, or run the bundled `wownerod` service and use:
|
|
MONERO_DAEMON_URL=http://wownerod:34568
|
|
|
|
# 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://wowcheckout.such.software
|