aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-04-29 18:09:17 +0100
committerGitHub <noreply@github.com>2023-04-29 18:09:17 +0100
commit1194379baafff6c71be3fe0913dfa11dd0071fb3 (patch)
treecda81350ccf8e0e40ff3d0e43ff33582558185bf /conf
parent529a1f8b4767ee8a84daaea6f6d825bb4793e1f3 (diff)
parent68ea1140d77cd4dda13247ec300251563a28c176 (diff)
downloadrspamd-1194379baafff6c71be3fe0913dfa11dd0071fb3.tar.gz
rspamd-1194379baafff6c71be3fe0913dfa11dd0071fb3.zip
Merge pull request #4473 from rspamd/vstakhov-fasttext-langdet
[Feature] Add fasttext language detector to Rspamd
Diffstat (limited to 'conf')
-rw-r--r--conf/lang_detection.inc10
-rw-r--r--conf/rspamd.conf6
2 files changed, 16 insertions, 0 deletions
diff --git a/conf/lang_detection.inc b/conf/lang_detection.inc
new file mode 100644
index 000000000..ca51d2ee9
--- /dev/null
+++ b/conf/lang_detection.inc
@@ -0,0 +1,10 @@
+# Language detection configuration
+# Please don't modify this file as your changes might be overwritten with
+# the next update.
+#
+# You can modify 'local.d/lang_detection.inc' to add and merge
+# parameters defined inside this section
+#
+# You can modify 'override.d/lang_detection.inc' to strictly override all
+# parameters defined inside this section
+
diff --git a/conf/rspamd.conf b/conf/rspamd.conf
index 115fa5403..8ce93441c 100644
--- a/conf/rspamd.conf
+++ b/conf/rspamd.conf
@@ -24,6 +24,12 @@ options {
.include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/options.inc"
}
+lang_detection {
+ .include "$CONFDIR/lang_detection.inc"
+ .include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/lang_detection.inc"
+ .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/lang_detection.inc"
+}
+
.include(try=true; duplicate=merge) "$CONFDIR/cgp.inc"
.include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/cgp.inc"