Local IP address creates SSL error

Although it wasn’t immediately obvious how to, I enabled logging using:

and

and

Turns out it was as simple as:

{
  debug
}

https://redacted.com https://192.168.1.25:8012 https://simon.local:8012 {
  reverse_proxy home_assistant:8123
}

This results in the following, rather brief, log line being spat out.

caddy_1        | {"level":"debug","ts":1612168776.013658,"logger":"http.stdlib","msg":"http: TLS handshake error from 192.168.1.164:53180: no certificate available for '172.19.0.8'"}

This points to the docker abstraction as the culprit. Caddy’s creating a certificate for 192.168.1.25, but the address that’s ‘requested’ is 172.19.0.8. An internal docker address.
This post seems to support this:

It doesn’t provide an answer, other than configuring a domain name (which, of course, I am doing via the .local domain)

I have not been able to find any solution so far.

1 Like