bots: - import: CUSTOM/policies/meta/base.yaml - import: (data)/clients/git.yaml - import: (data)/apps/gitea-rss-feeds.yaml # Allow forgejo runner connections from localhost and tailscale - name: forgejo-runner user_agent_regex: connect-go action: ALLOW dnsbl: false openGraph: enabled: true considerHost: false ttl: 24h status_codes: CHALLENGE: 200 DENY: 200 thresholds: - name: minimal-suspicion expression: weight <= 0 action: ALLOW - name: mild-suspicion expression: all: - weight > 0 - weight < 10 action: CHALLENGE challenge: # https://anubis.techaro.lol/docs/admin/configuration/challenges/metarefresh algorithm: metarefresh difficulty: 1 report_as: 1 - name: moderate-suspicion expression: all: - weight >= 10 - weight < 20 action: CHALLENGE challenge: # https://anubis.techaro.lol/docs/admin/configuration/challenges/proof-of-work algorithm: fast difficulty: 2 # two leading zeros, very fast for most clients report_as: 2 - name: mild-proof-of-work expression: all: - weight >= 20 - weight < 30 action: CHALLENGE challenge: # https://anubis.techaro.lol/docs/admin/configuration/challenges/proof-of-work algorithm: fast difficulty: 4 report_as: 4 # For clients that are browser like and have gained many points from custom rules - name: extreme-suspicion expression: weight >= 30 action: CHALLENGE challenge: # https://anubis.techaro.lol/docs/admin/configuration/challenges/proof-of-work algorithm: fast difficulty: 6 report_as: 5