Lets Encrypt Config Agree Terms

I want to start Caddy with accept lets encrypt terms in the config, because i get this error in the logs:

18.4.2018 18:55:42Do you agree to the terms? (y/n): 2018/04/18 16:55:42 [INFO] SIGTERM: Shutting down servers then terminating
18.4.2018 18:55:58Activating privacy features…
18.4.2018 18:55:58
18.4.2018 18:55:58Your sites will be served over HTTPS automatically using Let’s Encrypt.
18.4.2018 18:55:58By continuing, you agree to the Let’s Encrypt Subscriber Agreement at:
18.4.2018 18:55:58 https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf

Thanks for your help!

Just run caddy with the -agree flag.

Hey Matt,

thanks for your quick reply.
I already tried with the -agree flag in the command line, it skips the message to agree the terms.

18.4.2018 21:58:56Activating privacy features… done.
18.4.2018 21:58:56http://:2015

When i visit localhost:2015 it says that caddy server is running correctly, but i cant reach any of my domains.
The answer of my domains is “ERR_CONNECTION_REFUSED”.

I cant find any solution for this.

My Caddyfile is like this:

https://www.blabla.de {
log /var/log/wordpress.blabla_access.log
errors /var/log/wordpress.blabla_error.log
proxy / blabla.rancher.internal:80 {
transparent
}
tls rene@blabla.de
gzip
}

Looks like it’s not getting your Caddyfile. It should be printing a list of your actual sites here, not the default :2015.

How do you run Caddy, and what flags are you providing?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.