mirror of https://gitlab.crans.org/nounous/nixos
fix: add /public exception for perso pages
parent
063c3b45d7
commit
e5f99f76b6
|
|
@ -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" {
|
anubisMirrors = formatJSON.generate "anubis_mirrors.json" {
|
||||||
"bots" = [
|
"bots" = [
|
||||||
{
|
{
|
||||||
|
|
@ -190,7 +208,7 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"wiki" = {
|
"wiki" = {
|
||||||
anubisConfig = "${anubisChallenge}";
|
anubisConfig = "${anubisPerso}";
|
||||||
target = "[fd00::10:0:ff:fe01:6110]"; # l'ipv4 marche pas
|
target = "[fd00::10:0:ff:fe01:6110]"; # l'ipv4 marche pas
|
||||||
serverAliases = [
|
serverAliases = [
|
||||||
"wikipedia"
|
"wikipedia"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue