- Introduced NOTIFICATION_DRY_RUN configuration option in .env.example and k8s/secret.example.yaml. - Updated README.md to include usage instructions for the new dry run feature. - Implemented logic in app.go to preview notifications without sending them when the dry run option is enabled. - Enhanced config.go to load the new configuration option and validate notification types accordingly. - Added a new function in notify.go to generate manual-needed notification messages for preview.
29 lines
870 B
Plaintext
29 lines
870 B
Plaintext
NCORE_USERNAME='your-ncore-username'
|
|
NCORE_PASSWORD='your-ncore-password'
|
|
|
|
QBITTORRENT_URL='http://localhost:8080'
|
|
QBITTORRENT_USERNAME='admin'
|
|
QBITTORRENT_PASSWORD='your-qbit-password'
|
|
|
|
APP_DB_PATH='data/ncore-hnr.sqlite'
|
|
ALERT_AFTER='48h'
|
|
|
|
# Optional: leave NOTIFICATION_TYPE empty to disable alerts.
|
|
# Use 'ntfy' or 'smtp'. If NOTIFICATION_NTFY_URL is set, ntfy is selected automatically.
|
|
NOTIFICATION_DRY_RUN='false'
|
|
NOTIFICATION_TYPE=''
|
|
|
|
# ntfy.sh example: https://ntfy.sh/your-secret-topic
|
|
NOTIFICATION_NTFY_URL=''
|
|
|
|
# SMTP example for Gmail: host smtp.gmail.com, port 587, username your Gmail address,
|
|
# password a Gmail app password, from your Gmail address, to your target email.
|
|
NOTIFICATION_SMTP_HOST=''
|
|
NOTIFICATION_SMTP_PORT='587'
|
|
NOTIFICATION_SMTP_USERNAME=''
|
|
NOTIFICATION_SMTP_PASSWORD=''
|
|
NOTIFICATION_SMTP_FROM=''
|
|
NOTIFICATION_SMTP_TO=''
|
|
|
|
DRY_RUN='false'
|