spinupwp / wordpress-nginx

Nginx server configurations for WordPress
609 stars 181 forks source link

add letsencrypt challenge block for easier automation of letsencrypt cert setup #14

Closed nerrad closed 6 years ago

nerrad commented 7 years ago

For automation of letsencrypt cert setup, this config will ensure that authentication of site existence/ownership is verified when letsencrypt issues its request challenge.

nerrad commented 7 years ago

So you can see how the letsencrypt block gets used in the ansible playbook I created here: https://github.com/nerrad/wordpress-ansible-playbook

A5hleyRich commented 6 years ago

Thanks for the PR, but I think this is quite tailored to your setup, due to the required /sites/letsencrypt/public directory. For others looking into installing Let's Encrypt I would recommend:

https://certbot.eff.org