mirror of https://gitlab.crans.org/nounous/nixos
Merge branch 'anubis' into 'main'
feat: Anubis publics page for perso.crans.org See merge request nounous/nixos!43main
commit
eb86f85eb8
|
|
@ -111,6 +111,24 @@ let
|
|||
];
|
||||
};
|
||||
|
||||
anubisPerso = formatJSON.generate "anubis_perso.json" {
|
||||
"bots" = [
|
||||
{
|
||||
name = "allow-public";
|
||||
path_regex = "^/[a-zA-Z0-9_-]*/public/.*";
|
||||
action = "ALLOW";
|
||||
}
|
||||
{
|
||||
import = "${antiBot}";
|
||||
}
|
||||
{
|
||||
name = "challenge-other";
|
||||
path_regex = "^*";
|
||||
action = "CHALLENGE";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
anubisMirrors = formatJSON.generate "anubis_mirrors.json" {
|
||||
"bots" = [
|
||||
{
|
||||
|
|
@ -183,7 +201,7 @@ in
|
|||
target = "172.16.10.104";
|
||||
};
|
||||
"perso" = {
|
||||
anubisConfig = "${anubisChallenge}";
|
||||
anubisConfig = "${anubisPerso}";
|
||||
target = "172.16.10.31";
|
||||
serverAliases = [
|
||||
"clubs"
|
||||
|
|
|
|||
Loading…
Reference in New Issue