From b3b08c4ea7945f54fd10b8a4a1c3dfa5acd2b79a Mon Sep 17 00:00:00 2001 From: Anoop B Date: Wed, 29 Apr 2020 15:34:50 +0530 Subject: [PATCH] fix linting --- docs/guides/caddy-configuration.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/guides/caddy-configuration.md b/docs/guides/caddy-configuration.md index 16771d6..a319cab 100644 --- a/docs/guides/caddy-configuration.md +++ b/docs/guides/caddy-configuration.md @@ -51,13 +51,15 @@ blackhole:80, pi.hole:80, 0.0.0.0:80 { In this case, I've chosen to also add blackhole and pi.hole as valid names to open the admin page with. ### Caddyfile (Caddy version 2) + ``` pi.hole:80{ reverse_proxy localhost:1080 } ``` + - If you'd like to enable Https on your site, make sure your server is reacheable via your domain name (ex: myawesomesite.com) and is pointing to the right IP address. -- Additionally you need to open ports :80 and :443 (Apart from the one's required specifically for pi-hole) for your server before setting up https. +- Additionally you need to open ports :80 and :443 (Apart from the one's required specifically for pi-hole) for your server before setting up https. The following configuration will automatically fetch and setup Https for your domain using Lets-Encrypt @@ -66,7 +68,9 @@ myawesomesite.com { reverse_proxy localhost:1080 } ``` + Additionally you can make pihole reacheable via a subdomain and optionally can you enable Zstandard and Gzip compression as follows: + ``` pihole.myawesomesite.com { reverse_proxy localhost:1080 @@ -74,7 +78,7 @@ encode zstd gzip } ``` -Finally, run `sudo systemctl daemon-reload` to force caddy to load the new configuration. +Finally, run `sudo systemctl daemon-reload` to force caddy to load the new configuration. ## Verifying your setup @@ -103,4 +107,5 @@ Lastly, ensure that requests for JavaScript files from advertisement domains are curl -H "Host: badhost" pi.hole/malicious.js var x = "Pi-hole: A black hole for Internet advertisements." ``` -For more information visit caddy's documentation [website](https://caddyserver.com/docs/). \ No newline at end of file + +For more information visit caddy's documentation [website](https://caddyserver.com/docs/).