--- # Diun configuration for {{ inventory_hostname }} # Documentation: https://crazymax.dev/diun/ db: path: /data/diun.db watch: workers: {{ diun_watch_workers }} schedule: "{{ diun_schedule }}" firstCheckNotif: {{ diun_first_check_notif | lower }} defaults: watchRepo: true notifyOn: - new - update providers: docker: watchByDefault: {{ diun_watch_all | lower }} {% if diun_exclude_containers | length > 0 %} excludeContainers: {% for container in diun_exclude_containers %} - {{ container }} {% endfor %} {% endif %} notif: {% if diun_notif_enabled and diun_notif_type == 'webhook' and diun_webhook_endpoint %} webhook: endpoint: {{ diun_webhook_endpoint }} method: {{ diun_webhook_method }} timeout: 10s {% if diun_webhook_headers | length > 0 %} headers: {% for key, value in diun_webhook_headers.items() %} {{ key }}: {{ value }} {% endfor %} {% endif %} {% endif %} {% if diun_slack_webhook_url %} slack: webhookURL: {{ diun_slack_webhook_url }} {% endif %} {% if diun_email_enabled and diun_smtp_username_final is defined and diun_smtp_password_final is defined and diun_smtp_password_final != '' %} mail: host: {{ diun_smtp_host }} port: {{ diun_smtp_port }} ssl: false insecureSkipVerify: false username: {{ diun_smtp_username_final }} password: {{ diun_smtp_password_final }} from: {{ diun_smtp_from }} to: {{ diun_smtp_to }} {% endif %}