install.fairie/home/dot_config/dagu/private_config.yaml.tmpl

32 lines
836 B
Cheetah
Raw Normal View History

---
### Directory path to save logs from standard output
logDir: /var/log/dagu
### History retention days (default: 30)
histRetentionDays: 30
### Email notification settings
mailOn:
failure: true
success: false
### SMTP server settings
smtp:
2024-01-02 17:40:12 -08:00
host: {{ .host.smtp.host }}
port: {{ .host.smtp.port }}
username: {{ .host.smtp.user }}
password: "{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "SENDGRID_API_KEY")) }}{{ includeTemplate "secrets/SENDGRID_API_KEY" | decrypt | trim }}{{ else }}{{ env "SENDGRID_API_KEY" }}{{ end }}"
### Error mail configuration
errorMail:
2024-01-02 17:40:12 -08:00
from: "{{ .host.smtp.from }}"
to: "{{ .user.email }}"
prefix: "[Error]"
attachLogs: true
### Info mail configuration
infoMail:
2024-01-02 17:40:12 -08:00
from: "{{ .host.smtp.from }}"
to: "{{ .user.email }}"
prefix: "[Info]"
attachLogs: true