diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-28 11:46:49 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-28 11:47:11 +0100 |
commit | 40b1540465e1f666d0b69ecd4000cae706f05ba2 (patch) | |
tree | 014871ad63f165b6c9ab7c3d253159839921af6f /conf | |
parent | 77a167846ee380a629abf77037b7f428f22a4e68 (diff) | |
download | rspamd-40b1540465e1f666d0b69ecd4000cae706f05ba2.tar.gz rspamd-40b1540465e1f666d0b69ecd4000cae706f05ba2.zip |
[Conf] Add an example of fuzzy storage worker
Diffstat (limited to 'conf')
-rw-r--r-- | conf/rspamd.sysvinit.conf | 9 | ||||
-rw-r--r-- | conf/worker-fuzzy.inc | 39 |
2 files changed, 48 insertions, 0 deletions
diff --git a/conf/rspamd.sysvinit.conf b/conf/rspamd.sysvinit.conf index f5db62294..9849beb17 100644 --- a/conf/rspamd.sysvinit.conf +++ b/conf/rspamd.sysvinit.conf @@ -45,3 +45,12 @@ worker { .include(try=true; priority=1) "$LOCAL_CONFDIR/local.d/worker-controller.inc" .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/worker-controller.inc" } + +# Local fuzzy storage is disabled by default + +#worker { +# bind_socket = "*:11335"; +# .include "$CONFDIR/worker-fuzzy.inc" +# .include(try=true; priority=1) "$LOCAL_CONFDIR/local.d/worker-fuzzy.inc" +# .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/worker-fuzzy.inc" +#} diff --git a/conf/worker-fuzzy.inc b/conf/worker-fuzzy.inc new file mode 100644 index 000000000..9c714372e --- /dev/null +++ b/conf/worker-fuzzy.inc @@ -0,0 +1,39 @@ +# Included from top-level .conf file + +type = "fuzzy"; +hash_file = "${DBDIR}/fuzzy.db"; +expire = 90d; +allow_update = ["localhost"]; + +# Slave example (disabled by default) +/* +sync_keypair { + pubkey = "53e6yt94fqbzccdqcsmoughxfxed7figuefkbs8f3hsybn3t9xhy"; + privkey = "eth4rod5xigw55tagtpo4ka98mya4nx8765wh5zozgjdk5weqd5y"; + id = "yf4mzjp5aexr39a9ijksth6cwumaxztg8iw84oee55n7hj6jkkhbtuwmph75ybsk79bm79cmmtz8ummzkeie4g4ony5x3z9i1hn5fqb"; + encoding = "base32"; + algorithm = "curve25519"; + type = "kex"; +} + +masters = "master.example.com"; +master_key = "tmpaorg6cdyqia79wmy99j546tdj9muc9coou8ns9au6dubhxcfy"; +*/ + +# Master example (disabled by default) + +/* +sync_keypair { + pubkey = "tmpaorg6cdyqia79wmy99j546tdj9muc9coou8ns9au6dubhxcfy"; + privkey = "a9d4kuz4grfienkfhuhreeiqqscng7sxntbnemkyo1ejxestquty"; + id = "q455stnkqf9r6f1e3bhcbdys9e179b97ymz1exb4ogwxxgerazz1nwy1sssrsri3ydjdag46ziok1ufx3xqifugdnewaqg4dsrdna8y"; + encoding = "base32"; + algorithm = "curve25519"; + type = "kex"; +} +slave { + name = "slave1"; + hosts = "slave.example.com"; + key = "53e6yt94fqbzccdqcsmoughxfxed7figuefkbs8f3hsybn3t9xhy"; +} +*/ |