SSL Error on admin panel with caddy

I have vaultwarden and caddy set up using the “Caddy with HTTP Challenge” instructions here: Using Docker Compose · dani-garcia/vaultwarden Wiki · GitHub, with the appropriate ADMIN_TOKEN line added to docker-compose.yml. It worked before, and it still works if I launch vaultwarden by itself, but since I changed the domain name pointing to my server, it now tells me that the “Secure Connection Failed” and gives the error code “SSL_ERROR_INTERNAL_ERROR_ALERT”. I have already updated the domain name in docker-compose.yml and connecting to the database works fine both in the web interface and in the app. Launching without the -d flag gives no errors. Thanks for any help you can give!