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