1. Caddy version (caddy version
):
Caddy V2.4.6 (docker)
2. How I run Caddy:
Caddy is installed on Docker (Portainer), on a local network (ubuntu-server).
a. System environment:
- Hardware is a NUC running Proxmox
- Caddy is installed on an ubuntu VM running Docker.
- VaultWarden is installed as a separate container in Docker too.
I have a separate RasperryPi running PiHole
b. Command:
Run from Portainer with the following:
CMD = caddy run --config /etc/caddy/Caddyfile --adapter caddyfile
Volumes:
/var/lib/docker/volumes/caddy/config >> /config
/var/lib/docker/volumes/caddy/data >> /data
/var/lib/docker/volumes/caddy/Caddyfile| >> /etc/caddy/Caddyfile
/var/lib/docker/volumes/caddy/site >> /usr/share/caddy
Paste command here.
c. Service/unit/compose file:
Paste full file contents here.
Make sure backticks stay on their own lines,
and the post looks nice in the preview pane.
d. My complete Caddyfile or JSON config:
have tried:
vault.ubuntu-server {
reverse_proxy localhost:8000
}
and also tried:
vault.localhost {
reverse_proxy localhost:8000
}
Paste config here, replacing this text.
Use `caddy fmt` to make it readable.
DO NOT REDACT anything except credentials.
LEAVE DOMAIN NAMES INTACT.
Make sure the backticks stay on their own lines.
3. The problem I’m having:
I am unable to have Caddy serve VaultWarden as HTTPS. VaultWarden is on the same server, using port 8000 mapped to 80 in Portainer. VaultWarden opens ok, but I need to enable SSL to be able to set-up and continue
4. Error messages and/or full log output:
No errors as such. Just can’t get Caddy to work with this set-up
5. What I already tried:
I have tried several CaddyFile options.