rico0: blocky - add allowlist
This commit is contained in:
parent
76a53c7fd7
commit
382e7efa4b
1 changed files with 12 additions and 2 deletions
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue