My Nix Configuration
1bots: 2 - import: CUSTOM/policies/meta/base.yaml 3 - import: (data)/clients/git.yaml 4 - import: (data)/apps/gitea-rss-feeds.yaml 5dnsbl: false 6openGraph: 7 enabled: true 8 considerHost: false 9 ttl: 24h 10status_codes: 11 CHALLENGE: 200 12 DENY: 200 13thresholds: 14 - name: minimal-suspicion 15 expression: weight <= 0 16 action: ALLOW 17 - name: mild-suspicion 18 expression: 19 all: 20 - weight > 0 21 - weight < 10 22 action: CHALLENGE 23 challenge: 24 # https://anubis.techaro.lol/docs/admin/configuration/challenges/metarefresh 25 algorithm: metarefresh 26 difficulty: 1 27 report_as: 1 28 - name: moderate-suspicion 29 expression: 30 all: 31 - weight >= 10 32 - weight < 20 33 action: CHALLENGE 34 challenge: 35 # https://anubis.techaro.lol/docs/admin/configuration/challenges/proof-of-work 36 algorithm: fast 37 difficulty: 2 # two leading zeros, very fast for most clients 38 report_as: 2 39 - name: mild-proof-of-work 40 expression: 41 all: 42 - weight >= 20 43 - weight < 30 44 action: CHALLENGE 45 challenge: 46 # https://anubis.techaro.lol/docs/admin/configuration/challenges/proof-of-work 47 algorithm: fast 48 difficulty: 4 49 report_as: 4 50 # For clients that are browser like and have gained many points from custom rules 51 - name: extreme-suspicion 52 expression: weight >= 30 53 action: CHALLENGE 54 challenge: 55 # https://anubis.techaro.lol/docs/admin/configuration/challenges/proof-of-work 56 algorithm: fast 57 difficulty: 6 58 report_as: 5