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" [
|
antiBot = formatYAML.generate "antibot.yaml" [
|
||||||
{
|
{
|
||||||
name = "whitelist-crans";
|
name = "whitelist-crans";
|
||||||
action = "ALLOW";
|
action = "ALLOW";
|
||||||
remote_addresses = [
|
remote_addresses = [
|
||||||
"185.230.79.0/22"
|
"185.230.79.0/22"
|
||||||
"2a0c:700::/32"
|
"2a0c:700::/32"
|
||||||
"46.105.102.188/32"
|
"46.105.102.188/32"
|
||||||
"2001:41d0:2:d5bc::/128"
|
"2001:41d0:2:d5bc::/128"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
# On refuse les bots qui font souvent de la merde.
|
# On refuse les bots qui font souvent de la merde.
|
||||||
|
|
@ -63,6 +63,9 @@ let
|
||||||
|
|
||||||
anubisPerso = formatJSON.generate "anubis_perso.json" {
|
anubisPerso = formatJSON.generate "anubis_perso.json" {
|
||||||
"bots" = [
|
"bots" = [
|
||||||
|
{
|
||||||
|
import = "${antiBot}";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
name = "allow-public";
|
name = "allow-public";
|
||||||
path_regex = "^/[a-zA-Z0-9_-]*/public/.*";
|
path_regex = "^/[a-zA-Z0-9_-]*/public/.*";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue