My Nix Configuration
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

[anubis] allow koreader past

dish 2e86b11b 441c0e3e

+62
+2
hosts/marvin/services/miniflux.nix
··· 1 1 { 2 2 config, 3 3 self, 4 + self', 4 5 ... 5 6 }: 6 7 let ··· 32 33 services.anubis.instances.miniflux = { 33 34 settings = { 34 35 BIND = ":${toString d.anubis}"; 36 + POLICY_FNAME = "${self'.packages.anubis-files}/policies/miniflux.yaml"; 35 37 TARGET = "http://localhost:${toString d.port}"; 36 38 }; 37 39 };
+60
packages/anubis-files/src/policies/miniflux.yaml
··· 1 + bots: 2 + - import: CUSTOM/policies/meta/base.yaml 3 + # Allow KOReader Miniflux Plugin 4 + - name: allow-KOReader 5 + user_agent_regex: KOReader/* 6 + action: ALLOW 7 + dnsbl: false 8 + openGraph: 9 + enabled: true 10 + considerHost: false 11 + ttl: 24h 12 + status_codes: 13 + CHALLENGE: 200 14 + DENY: 200 15 + thresholds: 16 + - name: minimal-suspicion 17 + expression: weight <= 0 18 + action: ALLOW 19 + - name: mild-suspicion 20 + expression: 21 + all: 22 + - weight > 0 23 + - weight < 10 24 + action: CHALLENGE 25 + challenge: 26 + # https://anubis.techaro.lol/docs/admin/configuration/challenges/metarefresh 27 + algorithm: metarefresh 28 + difficulty: 1 29 + report_as: 1 30 + - name: moderate-suspicion 31 + expression: 32 + all: 33 + - weight >= 10 34 + - weight < 20 35 + action: CHALLENGE 36 + challenge: 37 + # https://anubis.techaro.lol/docs/admin/configuration/challenges/proof-of-work 38 + algorithm: fast 39 + difficulty: 2 # two leading zeros, very fast for most clients 40 + report_as: 2 41 + - name: mild-proof-of-work 42 + expression: 43 + all: 44 + - weight >= 20 45 + - weight < 30 46 + action: CHALLENGE 47 + challenge: 48 + # https://anubis.techaro.lol/docs/admin/configuration/challenges/proof-of-work 49 + algorithm: fast 50 + difficulty: 4 51 + report_as: 4 52 + # For clients that are browser like and have gained many points from custom rules 53 + - name: extreme-suspicion 54 + expression: weight >= 30 55 + action: CHALLENGE 56 + challenge: 57 + # https://anubis.techaro.lol/docs/admin/configuration/challenges/proof-of-work 58 + algorithm: fast 59 + difficulty: 6 60 + report_as: 5