fix: only set smtp secret when mailer is configured #3

Merged
simon merged 1 commits from kolaente/coop-cloud-vikunja:fix/mailer into main 2025-09-09 13:03:27 +00:00

1 Commits

Author SHA1 Message Date
bd5545b614 fix: only set smtp secret when mailer is configured
This fixes a bug where Vikunja would not start because the smtp secret was not set. It would show nothing in the logs but `docker inspect` on the host yields

```
"unable to get config from config store: failed to expand templated config cghsr0po6tijn4wuah8zulg48: template: expansion:9:15: executing \"expansion\" at <secret \"smtp_password\">: error calling secret: secret target smtp_password not found",
```

This change fixes that by checking if the mailer is enabled.
2025-09-09 11:59:11 +00:00