rico0: blocky - add allowlist

This commit is contained in:
Adithya 2024-09-17 22:42:02 +05:30
parent 76a53c7fd7
commit 382e7efa4b
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C

View file

@ -1,4 +1,4 @@
_: { pkgs, ... }:
let let
inherit (import ../../../shared/caddy-helpers.nix) logFormat; inherit (import ../../../shared/caddy-helpers.nix) logFormat;
domainName = "blocky.labs.adtya.xyz"; domainName = "blocky.labs.adtya.xyz";
@ -92,11 +92,21 @@ in
denylists = { denylists = {
ads = [ ads = [
"https://raw.githubusercontent.com/blocklistproject/Lists/master/ads.txt" "https://raw.githubusercontent.com/blocklistproject/Lists/master/ads.txt"
];
pihole = [
"https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts" "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts"
]; ];
}; };
allowlists = {
pihole = [
(pkgs.writeText "allowlist.txt" ''
s.youtube.com
'')
];
};
clientGroupsBlock = { clientGroupsBlock = {
default = [ "ads" ]; default = [ "ads" "pihole" ];
}; };
}; };
clientLookup = { clientLookup = {