Hi!
Tried to run Caddy + vaultwarden on Debian Bullseye (stable) on a vServer (hosted by Netcup.de).
DNS entries are fine, even for the used subdomain.
This is my /etc/Caddyfile
:
subdomain.domain.tld:443 {
log {
level INFO
output file /var/log/caddy {
roll_size 10MB
roll_keep 10
}
}
encode gzip
reverse_proxy /notifications/hub localhost:3012
reverse_proxy localhost:80 {
header_up X-Real-IP {remote_host}
}
}
subdomain.domain.tld
is (ofc) a real domain (e.g. something like: vaultwarden.somedomain.de
)
docker run -d --name vaultwarden -v /srv/vaultwarden:/data -e WEBSOCKET_ENABLED=true --restart on-failure vaultwarden/server:latest
docker run -d --name caddy -v /etc/Caddyfile:/etc/caddy/Caddyfile -v /etc/caddy:/root/.local/share/caddy -p 80:80 -p 443:443 --restart on-failure caddy:2
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6648b26baa05 caddy:2 "caddy run --config …" 11 minutes ago Up 11 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 2019/tcp caddy
e885f1daaef4 vaultwarden/server:latest "/usr/bin/dumb-init …" 11 minutes ago Up 11 minutes (healthy) 80/tcp, 3012/tcp vaultwarden
But I can’t access https://vaultwarden.somedomain.de
afterwards…
This page isn’t working
vaultwarden.somedomain.de redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS
I’ve cleared the cookies for that domain in Vivaldi, still the same message…
Help, please