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
Owner

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.

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.
kolaente added 1 commit 2025-09-09 11:59:48 +00:00
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.
simon approved these changes 2025-09-09 13:03:04 +00:00
simon merged commit f418cd1a40 into main 2025-09-09 13:03:27 +00:00
Sign in to join this conversation.
No description provided.