Of course that means that you actually have to add the key paths to your nginx config too, but once you have this up and running you will have a nice and stable config.
Neat! Yeah I think running the --standalone flag is the way to go. I gotta check the docs on certbot as I didn't realize you could specify a custom verification location directive.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
A former co-worker of mine suggested this setup:
Add the following location to your server block:
and then run certbot like this:
certbot certonly --standalone --http-01-port 9999 --noninteractive --agree-tos --email youremail@yourdomain.com -d www.yoursite.com --post-hook "service nginx reload"
The renew job in my crontab looks like this:
Of course that means that you actually have to add the key paths to your nginx config too, but once you have this up and running you will have a nice and stable config.
Neat! Yeah I think running the --standalone flag is the way to go. I gotta check the docs on certbot as I didn't realize you could specify a custom verification location directive.