ERR_SSL_PROTOCOL_ERROR with caddy

206 Views Asked by At

I deployed my .NET 8 API under Docker on my VPS (Debian 12) My docker image exposes on port 5000. I installed Caddy and made this setting (Caddyfile).

{
     email [email protected]
}

mydns.com {

root * /usr.share/caddy

file_server

reverse_proxy localhost:5000

log {
     output file /var/log/caddy/logs.log
    }
}

When I go to the URL corresponding to my DNS I get this error message:

ERR_SSL_PROTOCOL_ERROR

It seemed to me that Caddy would install an automatic certificate (via Let'sEncrypt)

Do you have any idea what I might have done wrong please?

0

There are 0 best solutions below