From f388da7ca9dd798fb179b75e48c6ada0642ecd49 Mon Sep 17 00:00:00 2001 From: Eugene Zolenko Date: Thu, 4 Oct 2018 11:41:55 -0600 Subject: [PATCH] Added a paragraph about Let's Encrypt --- Nginx-Configuration.asciidoc | 7 +++++++ 1 file changed, 7 insertions(+) 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