|
I'm implementing Traefik and integrating Vaultwarden (latest) behind to test. Everything works correctly (adding, modifying, and attaching files), but I can't download them. Same problem with the web interface and the Windows client. No issue without Traefik. I've checked the logs (always respond 200) and tried different configurations, without success. Has anyone else encountered this problem and have found a solution? Thanks in advance for your help! |
Replies: 3 comments 8 replies
|
I am also trying to set up vaultwarden behind traefik. Would you be able to share your setup so that I could reproduce it on my server? Perhaps I will encounter the same problem, then. |
|
Here's my config which is running stable for quite a while now (including attachments), so I hope it helps.
The only Vars worth mentioning here are:
services:
vaultwarden:
container_name: vaultwarden
hostname: vaultwarden
networks:
- ingress
- vaultwarden-network # database
image: vaultwarden/server:1.37.2 # no latest, no surprises
volumes:
- type: bind
source: /path/to/vaultwarden/data
target: /data
- type: bind
source: /path/to/vaultwarden/conf/vaultwarden.env
target: /.env
read_only: true
user: 1080:1080 # don't remember why I actually set this
expose:
- 8080
labels:
- traefik.enable=true
- traefik.docker.network=ingress
- traefik.http.services.vaultwarden.loadbalancer.server.port=8080
- traefik.http.routers.vaultwarden.entrypoints=https
- traefik.http.routers.vaultwarden.rule=Host(`vaultwarden.example.com`)
- traefik.http.routers.vaultwarden.service=vaultwardenIf I would add OIDC/SSO Auth to Vaultwarden, I would activate the builtin feature instead of trying to work around specific paths on the traefik side, which seems very brittle and error prone. |
|
I tried to get OIDC/SSO working on Vaultwarden via Traefik & Authentik, but I was getting some errors. I am watching #7127 since this seems that it describes my issue very closely. I plan on retesting after this issue is merged (or changelog addresses something similar). Maybe it's related to your errors too. |
Thanks for your share! It's help full for my next migration and learning.
After more test, I have found the env. var. "DOMAIN" have an impact only on the attachement download. During the deployement of the proxy's, I updated my host file to redirect the traffic without breaking the service. When the "DOMAIN" is configured correctly, no issue behind Traefik.
My goal is to protect the access with MFA to different system and centralise the access.
But authentik didn't support rollback (db upgrade), so it's quicke…