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