caddy version==0.10.6
Errors:
caddy_1 | 2018/03/23 13:08:53 [www.0.0.0.0] failed to get certificate: acme: Error 400 - urn:acme:error:malformed - Error creating new authz :: Name does not end in a public suffix
caddy_1 | 2018/03/23 12:55:14 duplicate site address: 0.0.0.0:5000
myimage_caddy_1 exited with code 1
I’m using docker-compose up to run my containers. I have local and production environments but only the production uses Caddy.
I’m trying to locally test my production build but Caddy is causing them to fail, citing(depending on my Caddyfile) duplicate address or failure to get certificates.
I can understand why it’s happening, as I’ve set my Caddyfile like this:
www.{$DOMAIN_NAME} {
redir https://example.com
}
{$DOMAIN_NAME} {
proxy / django:5000 {
header_upstream Host {host}
header_upstream X-Real-IP {remote}
header_upstream X-Forwarded-Proto {scheme}
}
log stdout
errors stdout
gzip
}
with DOMAIN_NAME=0.0.0.0:5000
.
I set the domain_name to that port to see if I can get it running locally.
So my question is, is Caddy not meant for testing? Does the DOMAIN_NAME have to be a legitimately set up DNS?
If I’m misunderstanding, can you point me to docs for setting up a testing environment?