7 Commits

Author SHA1 Message Date
8257abec54 fix smtp.yml and add smtp options 2026-01-06 18:29:25 +01:00
5958c4c3fe chore: publish 1.2.0+0.24.6 release
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
2025-10-09 16:10:30 +02:00
49ab93c503 fix traefik labels for v3 traefik
All checks were successful
continuous-integration/drone/push Build is passing
2025-10-09 16:00:57 +02:00
f418cd1a40 Merge pull request 'fix: only set smtp secret when mailer is configured' (#3) from kolaente/coop-cloud-vikunja:fix/mailer into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #3
Reviewed-by: simon <simon@noreply.git.coopcloud.tech>
2025-09-09 13:03:27 +00:00
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
3wc
0a6f397f4b Add CI and catalogue generation [mass update]
All checks were successful
continuous-integration/drone/push Build is passing
2025-05-08 14:44:10 +02:00
ba78d79998 chore: publish 1.1.1+0.24.6 release
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
2025-02-04 18:51:07 +01:00
6 changed files with 24 additions and 21 deletions

View File

@ -17,9 +17,9 @@ steps:
DOMAIN: authentik.swarm-test.autonomic.zone
STACK_NAME: authentik
LETS_ENCRYPT_ENV: production
CONFIG_YML_VERSION: v8
CONFIG_YML_VERSION: v9
HEALTHCHECK_VERSION: v1
PG_BACKUP_VERSION: v1
PG_BACKUP_VERSION: v2
SECRET_DB_PASSWORD_VERSION: v1
SECRET_JWT_SECRET_VERSION: v1
@ -42,4 +42,3 @@ steps:
trigger:
event: tag

View File

@ -42,7 +42,10 @@ VIKUNJA_AUTH_LOCAL_ENABLED=false
# COMPOSE_FILE="${COMPOSE_FILE}:compose.smtp.yml"
# VIKUNJA_MAILER_ENABLED=true
# VIKUNJA_MAILER_HOST=mail.example.com
# VIKUNJA_MAILER_PORT=25
# VIKUNJA_MAILER_AUTHTYPE=plain # possible: plain, login, cram-md5
# VIKUNJA_MAILER_USERNAME=user
# VIKUNJA_MAILER_FROMEMAIL=user@example.com
# SECRET_SMTP_PASSWORD_VERSION=v1
# VIKUNJA_MAILER_SKIPTLSVERIFY=false
# VIKUNJA_MAILER_FORCESSL=false
# SECRET_SMTP_PASSWORD_VERSION=v1

View File

@ -1,3 +1,3 @@
export CONFIG_YML_VERSION=v8
export CONFIG_YML_VERSION=v9
export HEALTHCHECK_VERSION=v1
export PG_BACKUP_VERSION=v2

View File

@ -3,11 +3,15 @@ version: "3.8"
services:
app:
environment:
- SMTP_ENABLED
- SMTP_HOST
- SMTP_AUTHTYPE
- SMTP_USER
- SMTP_FROM_EMAIL
- VIKUNJA_MAILER_ENABLED
- VIKUNJA_MAILER_HOST
- VIKUNJA_MAILER_PORT
- VIKUNJA_MAILER_AUTHTYPE
- VIKUNJA_MAILER_SKIPTLSVERIFY
- VIKUNJA_MAILER_FORCESSL
- VIKUNJA_MAILER_USERNAME
- VIKUNJA_MAILER_PASSWORD_FILE=/run/secrets/smtp_password
- VIKUNJA_MAILER_FROMEMAIL
secrets:
- smtp_password

View File

@ -21,12 +21,6 @@ services:
- VIKUNJA_CACHE_TYPE=redis
- VIKUNJA_SERVICE_ENABLEREGISTRATION=false
- VIKUNJA_SERVICE_JWTTTL=604800
- VIKUNJA_MAILER_ENABLED
- VIKUNJA_MAILER_HOST
- VIKUNJA_MAILER_AUTHTYPE
- VIKUNJA_MAILER_USERNAME
- VIKUNJA_MAILER_PASSWORD_FILE=/run/secrets/smtp_password
- VIKUNJA_MAILER_FROMEMAIL
- VIKUNJA_LOG_LEVEL
- VIKUNJA_LOG_DATABASE
- VIKUNJA_LOG_DATABASELEVEL
@ -53,14 +47,15 @@ services:
deploy:
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=3456"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect-aliases@docker"
- "traefik.http.middlewares.${STACK_NAME}-redirect-aliases.redirectregex.regex=^https://${REDIRECT_DOMAIN:-example.com}(.*)"
- "traefik.http.middlewares.${STACK_NAME}-redirect-aliases.redirectregex.replacement=https://${DOMAIN}$${1}"
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
- "traefik.http.middlewares.${STACK_NAME}-redirect.redirectregex.regex=^https://${REDIRECT_DOMAIN:-example.com}(.*)"
- "traefik.http.middlewares.${STACK_NAME}-redirect.redirectregex.replacement=https://${DOMAIN}$${1}"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=1.1.0+0.24.6"
- "coop-cloud.${STACK_NAME}.version=1.2.0+0.24.6"
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
healthcheck:
test: [ "CMD", "/healthcheck"]
@ -70,7 +65,7 @@ services:
start_period: 1m
redis:
image: redis:7.4.1-alpine
image: redis:8.2.2-alpine
networks:
- internal

View File

@ -5,8 +5,10 @@ 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: