Add optional API upload alongside SMTP, Nextcloud/WebDAV as a document source with the same dedup/retry flow as IMAP, stricter invoice file checks for images, and admin UI for source and delivery modes.
37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
# Copy to .env — never commit .env
|
|
|
|
# MySQL
|
|
MYSQL_ROOT_PASSWORD=change_me_root
|
|
MYSQL_DATABASE=forwarder
|
|
MYSQL_USER=forwarder
|
|
MYSQL_PASSWORD=change_me_db
|
|
|
|
# App
|
|
DATABASE_URL=mysql+pymysql://forwarder:change_me_db@mysql:3306/forwarder?charset=utf8mb4
|
|
ENCRYPTION_KEY=change_me_fernet_key
|
|
APP_SECRET=change_me_jwt_secret
|
|
ADMIN_USERNAME=admin
|
|
ADMIN_PASSWORD=change_me
|
|
|
|
# Worker
|
|
SYNC_INTERVAL_MINUTES=15
|
|
# Max successful SMTP forwards per rolling hour (0 = unlimited)
|
|
MAX_FORWARDS_PER_HOUR=400
|
|
# Forward queue: process at most N failed messages per tick
|
|
FORWARD_QUEUE_BATCH_SIZE=5
|
|
FORWARD_QUEUE_INTERVAL_SECONDS=60
|
|
|
|
# Gitea webhook autodeploy (deploy-hook service on :9090)
|
|
DEPLOY_WEBHOOK_SECRET=change_me_random_64_chars
|
|
# On CT 243 production, set absolute path to clone:
|
|
# FORWARDER_REPO_DIR=/opt/forwarder
|
|
|
|
# Error hub (errors.bitreport.pt)
|
|
ERROR_REPORTING_TOKEN=
|
|
ERROR_REPORTING_ENDPOINT=https://errors.bitreport.pt
|
|
ERROR_MONITORING_PROJECT_NAME=BizDocs Forwarder
|
|
ERROR_MONITORING_PROJECT_SLUG=bizdocs-forwarder
|
|
ERROR_MONITORING_GITEA_REPO=BitReport.pt/forwarder
|
|
ERROR_MONITORING_PAPERCLIP_PROJECT_ID=
|
|
ERROR_MONITORING_ENV=production
|