@@ -107,23 +107,52 @@ equals `match_count / shingles_count`.
107107
108108## Configuration
109109
110- Fuzzy storage accepts the following extra options:
111-
112- - ` hashfile ` - path to the sqlite storage (where are also few outdated aliases for this command exist: hash_file, file, database)
113- - ` backend ` - set it to ` redis ` if you want to use a redis server
114- - ` sync ` - time to perform database sync in seconds, default value: 60
115- - ` expire ` - time value for hashes expiration in seconds, default value: 2 days
116- - ` keypair ` - encryption keypair (can be repeated as list for different keys), can be obtained via * rspamadm keypair -u* command
117- - ` keypair_cache_size ` - Size of keypairs cache, default value: 512
118- - ` encrypted_only ` - allow encrypted requests only (and forbid all unknown keys or plaintext requests)
119- - ` master_timeout ` - master protocol IO timeout
120- - ` sync_keypair ` - encryption key for master/slave updates
121- - ` masters ` - string, allow master/slave updates from the following IP addresses
122- - ` master_key ` - allow master/slave updates merely using the specified key
123- - ` slave ` - list of slave hosts.
124- - ` mirror ` - list of slave hosts, same as ` slave `
125- - ` allow_update ` - string, array of strings or a map of IP addresses that are allowed
126- to perform changes to fuzzy storage (you should also set ` read_only = no ` in your fuzzy_check plugin).
110+ Fuzzy storage accepts the following configuration options:
111+
112+ ### Storage options
113+
114+ | Option | Default | Description |
115+ | --------| ---------| -------------|
116+ | ` hashfile ` | - | Path to the sqlite storage (aliases: ` hash_file ` , ` file ` , ` database ` ) |
117+ | ` backend ` | ` sqlite ` | Storage backend: ` sqlite ` or ` redis ` |
118+ | ` sync ` | 60s | Time interval to perform database sync |
119+ | ` expire ` | 2d | Default expire time for hashes |
120+ | ` delay ` | - | Default delay time for hashes (not enabled by default) |
121+
122+ ### Security options
123+
124+ | Option | Default | Description |
125+ | --------| ---------| -------------|
126+ | ` keypair ` | - | Encryption keypair (can be repeated for different keys), generate via ` rspamadm keypair -u ` |
127+ | ` keypair_cache_size ` | 512 | Size of keypairs cache |
128+ | ` encrypted_only ` | false | Allow only encrypted requests (forbid unknown keys or plaintext) |
129+ | ` allow_update ` | - | IP addresses/map allowed to perform modifications |
130+ | ` allow_update_keys ` | - | Public keys allowed to perform modifications |
131+ | ` blocked ` | - | Block requests from specific networks |
132+ | ` read_only ` | false | Work in read-only mode |
133+
134+ ### Replication options
135+
136+ | Option | Default | Description |
137+ | --------| ---------| -------------|
138+ | ` master_timeout ` | 10s | Master protocol I/O timeout |
139+ | ` sync_keypair ` | - | Encryption key for master/slave updates |
140+ | ` masters ` | - | IP addresses allowed for master/slave updates |
141+ | ` master_key ` | - | Key allowed for master/slave updates |
142+ | ` slave ` | - | List of slave hosts |
143+ | ` mirror ` | - | Alias for ` slave ` |
144+
145+ ### Advanced options
146+
147+ | Option | Default | Description |
148+ | --------| ---------| -------------|
149+ | ` tcp_timeout ` | 5s | TCP connection timeout |
150+ | ` updates_maxfail ` | 3 | Maximum update failures before discarding |
151+ | ` dedicated_update_worker ` | false | Use worker 0 for updates only |
152+ | ` delay_whitelist ` | - | Disable delay check for specific IP addresses |
153+ | ` forbidden_ids ` | - | Deny specific flags by default |
154+ | ` weak_ids ` | - | Flags treated as weak (don't overwrite strong flags) |
155+ | ` dynamic_keys_map ` | - | Map for dynamic encryption keypairs |
127156
128157Here is an example configuration of fuzzy storage:
129158
0 commit comments