Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame^] | 1 | rule "local" { |
| 2 | # Fuzzy storage server list |
| 3 | servers = "localhost:11445"; |
| 4 | # Default symbol for unknown flags |
| 5 | symbol = "LOCAL_FUZZY_UNKNOWN"; |
| 6 | # Additional mime types to store/check |
| 7 | mime_types = ["application/*"]; |
| 8 | # Hash weight threshold for all maps |
| 9 | max_score = 100.0; |
| 10 | # Whether we can learn this storage |
| 11 | read_only = no; |
| 12 | # Ignore unknown flags |
| 13 | skip_unknown = yes; |
| 14 | # Hash generation algorithm |
| 15 | algorithm = "mumhash"; |
| 16 | |
| 17 | # Map flags to symbols |
| 18 | fuzzy_map = { |
| 19 | LOCAL_FUZZY_DENIED { |
| 20 | max_score = 10.0; |
| 21 | flag = 11; |
| 22 | } |
| 23 | LOCAL_FUZZY_WHITE { |
| 24 | max_score = 5.0; |
| 25 | flag = 13; |
| 26 | } |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | rule "mailcow" { |
| 31 | # Fuzzy storage server list |
| 32 | servers = "fuzzy.mailcow.email:11445"; |
| 33 | # Default symbol for unknown flags |
| 34 | symbol = "MAILCOW_FUZZY_UNKNOWN"; |
| 35 | # Additional mime types to store/check |
| 36 | mime_types = ["application/*"]; |
| 37 | # Hash weight threshold for all maps |
| 38 | max_score = 100.0; |
| 39 | # Whether we can learn this storage |
| 40 | read_only = yes; |
| 41 | # Ignore unknown flags |
| 42 | skip_unknown = yes; |
| 43 | # Hash generation algorithm |
| 44 | algorithm = "mumhash"; |
| 45 | # Encrypt connection |
| 46 | encryption_key = "oa7xjgdr9u7w3hq1xbttas6brgau8qc17yi7ur5huaeq6paq8h4y"; |
| 47 | # Map flags to symbols |
| 48 | fuzzy_map = { |
| 49 | MAILCOW_FUZZY_DENIED { |
| 50 | max_score = 10.0; |
| 51 | flag = 11; |
| 52 | } |
| 53 | } |
| 54 | } |