mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-26 07:13:48 +01:00
* Add script notification (#53) * Fix SysProcAttr * Fix build constraint Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
3.0 KiB
3.0 KiB
Configuration
Overview
db:
path: diun.db
watch:
workers: 10
schedule: "0 * * * *"
first_check_notif: false
notif:
amqp:
host: localhost
port: 5672
username: guest
password: guest
exchange:
queue: queue
gotify:
endpoint: http://gotify.foo.com
token: Token123456
priority: 1
timeout: 10
mail:
host: localhost
port: 25
ssl: false
insecure_skip_verify: false
username:
password:
from:
to:
rocketchat:
endpoint: http://rocket.foo.com:3000
channel: "#general"
user_id: abcdEFGH012345678
token: Token123456
timeout: 10
script:
cmd: "myprogram"
args:
- "--anarg"
- "another"
slack:
webhook_url: https://hooks.slack.com/services/ABCD12EFG/HIJK34LMN/01234567890abcdefghij
teams:
webhook_url: https://outlook.office.com/webhook/ABCD12EFG/HIJK34LMN/01234567890abcdefghij
telegram:
token: aabbccdd:11223344
chat_ids:
- 123456789
- 987654321
webhook:
endpoint: http://webhook.foo.com/sd54qad89azd5a
method: GET
headers:
Content-Type: application/json
Authorization: Token123456
timeout: 10
regopts:
someregistryoptions:
username: foo
password: bar
timeout: 20
onemore:
username: foo2
password: bar2
insecure_tls: true
providers:
docker:
watch_stopped: true
swarm:
watch_by_default: true
file:
directory: ./imagesdir
Reference
db
path: Path to Bolt database file where images manifests are stored (default:diun.db). Environment varDIUN_DBoverride this value.
watch
workers: Maximum number of workers that will execute tasks concurrently (default:10).schedule: CRON expression to schedule Diun watcher (default:0 * * * *).first_check_notif: Send notification at the very first analysis of an image. (default:false).
notif
regopts
username: Registry username.username_file: Use content of secret file as registry username ifusernamenot defined.password: Registry password.password_file: Use content of secret file as registry password ifpasswordnot defined.timeout: Timeout is the maximum amount of time for the TCP connection to establish. 0 means no timeout (default:10).insecure_tls: Allow contacting docker registry over HTTP, or HTTPS with failed TLS verification (default:false).