From d10959e9516c7e6bab11e8abda1c7f99e32efc53 Mon Sep 17 00:00:00 2001 From: The Hedgehog Date: Sun, 24 Jul 2022 10:43:38 -0400 Subject: [PATCH] prefect: Add tokyo-night theme to adguard --- hosts/prefect/services/caddy.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/hosts/prefect/services/caddy.nix b/hosts/prefect/services/caddy.nix index 033dd17..a9cf75b 100644 --- a/hosts/prefect/services/caddy.nix +++ b/hosts/prefect/services/caddy.nix @@ -14,8 +14,9 @@ vendorSha256 = "sha256-bIXe1xugwCJG2xzDDASBeOLIFLnkqmMSrAlWeyxo9QU="; }; email = "hedgehog@mrhedgehog.xyz"; - # globalConfig = '' - # ''; + globalConfig = '' + order filter after encode + ''; virtualHosts = { "reddit.thehedgehog.me" = { extraConfig = '' @@ -24,7 +25,16 @@ }; "adguard.thehedgehog.me" = { extraConfig = '' - reverse_proxy http://marvin:2500 + reverse_proxy http://marvin:2500 { + header_up -Accept-Encoding + header_down -x-webkit-csp + header_down -content-security-policy + } + filter { + content_type text/html.* + search_pattern + replacement "" + } ''; }; "rss.thehedgehog.me" = {