Closed jamezpolley closed 4 years ago
Certbot works with nginx by creating a new vhost config which looks a bit like this:
server {
listen 80
.....
}
This fails on RTK as Nginx doesn't listen on port 80, varnish does. Varnish forwards the request to Nginx on :8000 which doesn't know how to handle the request.
Couple of possible ways to handle this:
webroot
method, which writes files into a specified directory. We could use this in conjunction with a small tweak to Nginx config so that Nginx knows that requests for .well-known
should be served from that directory.I'm going to go ahead with the third option for now.
Looks to be happening again
Tracking new issue in https://github.com/openaustralia/infrastructure/issues/152
In fixing #146 certbot was updated to use the Nginx method to update certs on RightToKnow. However, testing shows that this is not working. Nginx logs show the requests from the LetsEncrypt validation server being received by Nginx and redirected, then refused: