install.fairie/home/dot_config/dagu/private_config.yaml.tmpl
2024-01-03 01:40:12 +00:00

32 lines
No EOL
836 B
Cheetah

---
### 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:
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:
from: "{{ .host.smtp.from }}"
to: "{{ .user.email }}"
prefix: "[Error]"
attachLogs: true
### Info mail configuration
infoMail:
from: "{{ .host.smtp.from }}"
to: "{{ .user.email }}"
prefix: "[Info]"
attachLogs: true