fix: add /public exception for perso pages

merge-requests/43/head
Pyjacpp 2025-12-06 15:46:17 +01:00
parent 063c3b45d7
commit e5f99f76b6
No known key found for this signature in database
GPG Key ID: ED479A5A26930939
1 changed files with 19 additions and 1 deletions

View File

@ -111,6 +111,24 @@ let
];
};
anubisPerso = formatJSON.generate "anubis_perso.json" {
"bots" = [
{
name = "allow-public";
path_regex = "^/public/*";
action = "ALLOW";
}
{
import = "${antiBot}";
}
{
name = "challenge-other";
path_regex = "^*";
action = "CHALLENGE";
}
];
};
anubisMirrors = formatJSON.generate "anubis_mirrors.json" {
"bots" = [
{
@ -190,7 +208,7 @@ in
];
};
"wiki" = {
anubisConfig = "${anubisChallenge}";
anubisConfig = "${anubisPerso}";
target = "[fd00::10:0:ff:fe01:6110]"; # l'ipv4 marche pas
serverAliases = [
"wikipedia"