From a44a201f0088a48a4240f380dded8c815ed4411e Mon Sep 17 00:00:00 2001 From: Kevin Ross Date: Mon, 14 Mar 2016 22:51:16 -0500 Subject: [PATCH 1/9] rewrite js files to a valid stub --- advanced/lighttpd.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/advanced/lighttpd.conf b/advanced/lighttpd.conf index 5a662ffa..124371a9 100644 --- a/advanced/lighttpd.conf +++ b/advanced/lighttpd.conf @@ -53,4 +53,6 @@ $HTTP["url"] =~ "^/admin/" { $HTTP["url"] =~ "^(?!/admin)/.*" { # Create a response header for debugging using curl -I setenv.add-response-header = ( "X-Pi-hole" => "A black hole for Internet advertisements." ) + # rewrite only js requests + url.rewrite = ("(.*).js" => "pihole/index.js") } From d3971b26e4e278a227f861697c2063acd6bfe9a8 Mon Sep 17 00:00:00 2001 From: Kevin Ross Date: Mon, 14 Mar 2016 22:52:02 -0500 Subject: [PATCH 2/9] add a valid js stub --- advanced/index.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 advanced/index.js diff --git a/advanced/index.js b/advanced/index.js new file mode 100644 index 00000000..6e81b42f --- /dev/null +++ b/advanced/index.js @@ -0,0 +1 @@ +var x = "X-Pi-hole: A black hole for Internet advertisements." From 404ea0ce6daaf61b1e6739d2ae3647d85390b24d Mon Sep 17 00:00:00 2001 From: Kevin Ross Date: Mon, 14 Mar 2016 22:54:45 -0500 Subject: [PATCH 3/9] copy both the html and js stubs during install --- automated install/basic-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index b3e6202f..35c885e8 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -619,7 +619,7 @@ installPiholeWeb() { else $SUDO mkdir /var/www/html/pihole $SUDO mv /var/www/html/index.lighttpd.html /var/www/html/index.lighttpd.orig - $SUDO cp /etc/.pihole/advanced/index.html /var/www/html/pihole/index.html + $SUDO cp /etc/.pihole/advanced/index.* /var/www/html/pihole/. $SUDO echo " done!" fi } From b79db363368310cc47fcea4b4abd2426ce898c5d Mon Sep 17 00:00:00 2001 From: Kevin Ross Date: Mon, 14 Mar 2016 22:59:38 -0500 Subject: [PATCH 4/9] no need for the X- header prefix in the string --- advanced/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/index.js b/advanced/index.js index 6e81b42f..c9da5aff 100644 --- a/advanced/index.js +++ b/advanced/index.js @@ -1 +1 @@ -var x = "X-Pi-hole: A black hole for Internet advertisements." +var x = "Pi-hole: A black hole for Internet advertisements." From fad5fafa328923f47d1f3a2a04fff49abfe76e43 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Sun, 20 Mar 2016 13:26:02 +0000 Subject: [PATCH 5/9] Increase disk space to verify... .. was missing a couple of zeros, and not verifying enough space! Fixes #384 --- automated install/basic-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index b3e6202f..3a53f6dc 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -117,8 +117,8 @@ welcomeDialogs() { verifyFreeDiskSpace() { - # 25MB is the minimum space needed (20MB install + 5MB one day of logs.) - requiredFreeBytes=51200 + # 50MB is the minimum space needed (45MB install (includes web admin bootstrap/jquery libraries etc) + 5MB one day of logs.) + requiredFreeBytes=5000000 existingFreeBytes=`df -lk / 2>&1 | awk '{print $4}' | head -2 | tail -1` if ! [[ "$existingFreeBytes" =~ ^([0-9])+$ ]]; then From 02bb5b6742c92426b8677626bc51647fdbec4f59 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Sun, 20 Mar 2016 20:50:31 +0000 Subject: [PATCH 6/9] Revert previous change Reopens #384 --- automated install/basic-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 3a53f6dc..7365104d 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -118,7 +118,7 @@ welcomeDialogs() { verifyFreeDiskSpace() { # 50MB is the minimum space needed (45MB install (includes web admin bootstrap/jquery libraries etc) + 5MB one day of logs.) - requiredFreeBytes=5000000 + requiredFreeBytes=51200 existingFreeBytes=`df -lk / 2>&1 | awk '{print $4}' | head -2 | tail -1` if ! [[ "$existingFreeBytes" =~ ^([0-9])+$ ]]; then From fa2cef639566c5763d6998c4c0afe2915a2b897f Mon Sep 17 00:00:00 2001 From: Jacob Salmela Date: Mon, 21 Mar 2016 08:29:19 -0500 Subject: [PATCH 7/9] link to get LED alerts article added a link to a cool project that makes an LED blink for each ad that gets blocked. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1a181d6f..4ad56250 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ reddit: [/r/pihole](https://www.reddit.com/r/pihole/) [![Pi-hole exlplained](http://i.imgur.com/qNybJDX.png)](https://vimeo.com/135965232) ## Pi-hole Projects +- [Get LED alerts for each blocked ad](http://www.stinebaugh.info/get-led-alerts-for-each-blocked-ad-using-pi-hole/) - [Pi-hole on Ubuntu 14.04 on VirtualBox](http://hbalagtas.blogspot.com/2016/02/adblocking-with-pi-hole-and-ubuntu-1404.html) - [x86 Docker container that runs Pi-hole](https://hub.docker.com/r/diginc/pi-hole/) - [Splunk: Pi-hole Visualizser](https://splunkbase.splunk.com/app/3023/) From 396c7ab9eebf75e1364056113d50d1c78342d342 Mon Sep 17 00:00:00 2001 From: Jacob Salmela Date: Tue, 22 Mar 2016 21:21:08 -0500 Subject: [PATCH 8/9] link to tekthing mention tekthing mentioned us again as one of 5 easy projects for the Raspberry Pi. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4ad56250..28e6791b 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ reddit: [/r/pihole](https://www.reddit.com/r/pihole/) - [Minibian Pi-hole](http://munkjensen.net/wiki/index.php/See_my_Pi-Hole#Minibian_Pi-hole) ## Coverage +- [TekThing: 5 fun, easy projects for a Raspberry Pi](https://youtu.be/QwrKlyC2kdM?t=1m42s) - [Pi-hole on Adafruit's blog](https://blog.adafruit.com/2016/03/04/pi-hole-is-a-black-hole-for-internet-ads-piday-raspberrypi-raspberry_pi/) - [The Defrag Show - MSDN/Channel 9](https://channel9.msdn.com/Shows/The-Defrag-Show/Defrag-Endoscope-USB-Camera-The-Final-HoloLens-Vote-Adblock-Pi-and-more?WT.mc_id=dlvr_twitter_ch9#time=20m39s) - [MacObserver Podcast 585](http://www.macobserver.com/tmo/podcast/macgeekgab-585) From 45cb9a2e800118196187c45627083b5a7f1847da Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Mon, 28 Mar 2016 22:51:54 -0400 Subject: [PATCH 9/9] fix template team link --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 071fdf89..b289a1c0 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -8,4 +8,4 @@ Changes proposed in this pull request: - -@pihole/gravity +@pi-hole/gravity