aboutsummaryrefslogtreecommitdiff
path: root/data/apps
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-04-22 07:47:33 -0400
committerXe Iaso <me@xeiaso.net>2025-04-22 13:47:09 -0400
commit7396ece1d77d5ad29b68a6357c6859ddcab84c7f (patch)
treec463f08568f25be3c8858780cca42432e2c428ef /data/apps
parent2db4105479e5920e983b15b0341104d6e572c1ea (diff)
downloadanubis-7396ece1d77d5ad29b68a6357c6859ddcab84c7f.tar.xz
anubis-7396ece1d77d5ad29b68a6357c6859ddcab84c7f.zip
feat(config): support importing bot policy snippets
This changes the grammar of the Anubis bot policy config to allow importing from internal shared rules or external rules on the filesystem. This lets you create a file at `/data/policies/block-evilbot.yaml` and then import it with: ```yaml bots: - import: /data/policies/block-evilbot.yaml ``` This also explodes the default policy file into a bunch of composable snippets. Thank you @Aibrew for your example gitea Atom / RSS feed rules! Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'data/apps')
-rw-r--r--data/apps/gitea-rss-feeds.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/data/apps/gitea-rss-feeds.yaml b/data/apps/gitea-rss-feeds.yaml
new file mode 100644
index 0000000..7bd34ce
--- /dev/null
+++ b/data/apps/gitea-rss-feeds.yaml
@@ -0,0 +1,7 @@
+# By Aibrew: https://github.com/TecharoHQ/anubis/discussions/261#discussioncomment-12821065
+- name: gitea-feed-atom
+ action: ALLOW
+ path_regex: ^/[.A-Za-z0-9_-]{1,256}?[./A-Za-z0-9_-]*\.atom$
+- name: gitea-feed-rss
+ action: ALLOW
+ path_regex: ^/[.A-Za-z0-9_-]{1,256}?[./A-Za-z0-9_-]*\.rss$ \ No newline at end of file