diff --git a/Nginx-Configuration.asciidoc b/Nginx-Configuration.asciidoc index b6dd383..ae2b27a 100644 --- a/Nginx-Configuration.asciidoc +++ b/Nginx-Configuration.asciidoc @@ -60,3 +60,10 @@ server { ``` error_page 404 /pihole/index.php ``` +. When using nginx to front pihole, Let's Encrypt can be used to directly configure nginx. Make sure to use your hostname instead of _ in `server_name _;` line above. +``` +add-apt-repository ppa:certbot/certbot +apt-get install certbot python-certbot-nginx + +certbot --nginx -m "$email" -d "$domain" -n --agree-tos --no-eff-email +``` \ No newline at end of file