feat: makes pages persos inherit antibot

merge-requests/59/head
Pyjacpp 2026-02-18 21:28:42 +01:00
parent 27a426da82
commit a180e6fc7c
No known key found for this signature in database
GPG Key ID: ED479A5A26930939
1 changed files with 11 additions and 8 deletions

View File

@ -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/.*";