diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-08 12:34:38 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-08 12:34:38 +0000 |
commit | 4b9b8cc4c72dc6e7e3db8b7ffadbb13a4e4f8d3f (patch) | |
tree | 31589f730ea02c83285a2cc996f0b32efb529766 /conf | |
parent | 585af99ecefae1d219858b0d9b4ac8d268aa19c9 (diff) | |
download | rspamd-4b9b8cc4c72dc6e7e3db8b7ffadbb13a4e4f8d3f.tar.gz rspamd-4b9b8cc4c72dc6e7e3db8b7ffadbb13a4e4f8d3f.zip |
[Feature] Add torch conditional to configuration
Diffstat (limited to 'conf')
-rw-r--r-- | conf/modules.d/neural.conf | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/conf/modules.d/neural.conf b/conf/modules.d/neural.conf index f12224d48..296ee2f2a 100644 --- a/conf/modules.d/neural.conf +++ b/conf/modules.d/neural.conf @@ -13,7 +13,7 @@ # # See https://rspamd.com/doc/tutorials/writing_rules.html for details -fann_redis { +neural { #servers = 127.0.0.1:6379; # Redis server to store learning data and ANN train { @@ -24,9 +24,15 @@ fann_redis { } timeout = 20; # Increase redis timeout - enabled = false; # Explicitly disable module - use_settings = false; # If enabled, then settings-id could switch this module to another FANN + enabled = ${HAS_TORCH}; # Explicitly disable module when torch is disabled + use_settings = false; # If enabled, then settings-id is used to dispatch networks + + # Legacy support .include(try=true,priority=5) "${DBDIR}/dynamic/fann_redis.conf" .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/fann_redis.conf" .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/fann_redis.conf" + + .include(try=true,priority=5) "${DBDIR}/dynamic/neural.conf" + .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/neural.conf" + .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/neural.conf" }
\ No newline at end of file |