Files
vikunja/config.yml.tmpl
kolaente 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

24 lines
736 B
Cheetah

# https://kolaente.dev/vikunja/vikunja/src/commit/eee7b060b65fb9b35c0bca0e4f69b66b56a8fe0f/config.yml.sample
# https://vikunja.io/docs/config-options
service:
JWTSecret: {{ secret "jwt_secret" }}
database:
password: "{{ secret "db_password" }}"
{{ if eq (env "VIKUNJA_MAILER_ENABLED") "true" }}
mailer:
password: {{ secret "smtp_password" }}
{{ end }}
{{ if eq (env "OAUTH_ENABLED") "true" }}
auth:
openid:
enabled: {{ env "OAUTH_ENABLED" }}
providers:
- name: {{ env "OAUTH_NAME" }}
authurl: {{ env "OAUTH_URL" }}
logouturl: {{ env "OAUTH_LOGOUT_URL" }}
clientid: {{ env "OAUTH_CLIENT_ID" }}
clientsecret: {{ secret "oauth_secret" }}
scope: openid email profile
{{ end }}