diff --git a/Pi-hole.md b/Pi-hole.md index f98754d..eb190d7 100644 --- a/Pi-hole.md +++ b/Pi-hole.md @@ -13,21 +13,23 @@ space-gray.css plex.css ``` -> ⚠️ : **CSP**: Because Pi-hole uses CSP it will block any attempts to inject stylesheets. -I've tried to strip away the headers with nginx using +### CSP +> ⚠️ Because Pi-hole uses CSP it will block any attempts to inject stylesheets. + +This will add `https://raw.githubusercontent.com` and `https://gilbn.github.io` to the CSP meta tag in the HTML. Allowing you to load the custom css. + ```nginx -proxy_hide_header "x-webkit-csp"; -proxy_hide_header "content-security-policy"; +proxy_set_header Accept-Encoding ""; +sub_filter +'' +''; +sub_filter +'' +' +'; +sub_filter_once on; ``` -But Pi-hole still blocks it. So for now [Stylus](https://github.com/gilbN/theme.park/wiki/Setup#stylus-method) or [Blackberry installer](https://github.com/gilbN/theme.park/wiki/Setup#blackberry-theme-installer-method) is the only way I know you can add it. -I will add the correct Nginx config when I figure it out. - -### If you have a working CSP config, please share it :) - -### plex.css -Pi-hole also uses https://api.github.com in their CSP directive, so that will block loading the backgrounds even when using Stylus. -![](https://i.imgur.com/D9KpskB.png) ### Screenshots