mirror of https://gitlab.crans.org/nounous/nixos
feat: makes pages persos inherit antibot
parent
27a426da82
commit
a180e6fc7c
|
|
@ -6,14 +6,14 @@ let
|
|||
|
||||
antiBot = formatYAML.generate "antibot.yaml" [
|
||||
{
|
||||
name = "whitelist-crans";
|
||||
action = "ALLOW";
|
||||
remote_addresses = [
|
||||
"185.230.79.0/22"
|
||||
"2a0c:700::/32"
|
||||
"46.105.102.188/32"
|
||||
"2001:41d0:2:d5bc::/128"
|
||||
];
|
||||
name = "whitelist-crans";
|
||||
action = "ALLOW";
|
||||
remote_addresses = [
|
||||
"185.230.79.0/22"
|
||||
"2a0c:700::/32"
|
||||
"46.105.102.188/32"
|
||||
"2001:41d0:2:d5bc::/128"
|
||||
];
|
||||
}
|
||||
{
|
||||
# On refuse les bots qui font souvent de la merde.
|
||||
|
|
@ -63,6 +63,9 @@ let
|
|||
|
||||
anubisPerso = formatJSON.generate "anubis_perso.json" {
|
||||
"bots" = [
|
||||
{
|
||||
import = "${antiBot}";
|
||||
}
|
||||
{
|
||||
name = "allow-public";
|
||||
path_regex = "^/[a-zA-Z0-9_-]*/public/.*";
|
||||
|
|
|
|||
Loading…
Reference in New Issue