Log partial-payment decisions and email results to stdout for Portainer logs; DEBUG enables full webhook payload tracing. Document BTCPay payload and shutdown steps in WEBHOOK.md. Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
695 B
Plaintext
26 lines
695 B
Plaintext
# Image (Gitea container registry)
|
|
IMAGE_REGISTRY=git.nxtgroup.org
|
|
IMAGE_OWNER=erling
|
|
IMAGE_NAME=btcpaymailer
|
|
IMAGE_TAG=1.0.0
|
|
|
|
# Container
|
|
CONTAINER_NAME=btcpay-mailer
|
|
HOST_PORT=5000
|
|
|
|
# Required secrets
|
|
WEBHOOK_SECRET=your_super_secret_token_123
|
|
BTCPAY_API_KEY=your_btcpay_api_key
|
|
POSTMARK_API_KEY=your_postmark_server_token
|
|
|
|
# Optional
|
|
BTCPAY_URL=https://payment.nxtgroup.org
|
|
FROM_EMAIL=billing@nxtgroup.org
|
|
BCC_EMAIL=admin@nxtgroup.org,finance@nxtgroup.org
|
|
DEBUG=false
|
|
|
|
# Test Postmark after deploy (docker exec or Portainer console):
|
|
# python app.py test-email you@example.com
|
|
# Or from host:
|
|
# curl -X POST "http://localhost:5000/test-email?token=YOUR_WEBHOOK_SECRET&to=you@example.com"
|