Support docker exec and a secured /test-email endpoint to verify email delivery before wiring up the BTCPay webhook. Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
683 B
Plaintext
25 lines
683 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
|
|
|
|
# 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"
|