Trying ModSecurity compose and failing to get letsencrypt certificate


I am following the docker-compose file from this page

but I am ending up with “ERR_CERT_AUTHORITY_INVALID”
I think I was expecting traefik to get the certificate from letsencrypt for me.
What I might be doing wrong?

ok, so actually the docker-compose was incomplete
I corrected the page

Is the current version a working copy of docker-compose.yml, am getting the same issue traefik not getting a cert, one thing I’ve noticed /opt/docker/le/acme.json is empty.

Fixed it needed to add two new lines

- traefik.http.routers.vw-ui-https.tls.certresolver=myresolver
- traefik.http.routers.vw-websocket-https.tls.certresolver=myresolver

The funny thing is them line were in the docker-compose.yml but got removed Compare revisions · dani-garcia/vaultwarden Wiki · GitHub

I suggest to add them back in again then :slightly_smiling_face: