aboutsummaryrefslogtreecommitdiffstats
path: root/conf/local.d
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-11-06 13:44:19 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-11-06 13:44:19 +0000
commit2fa3f26efff008ba65d8f32f5f41e71181d0bd59 (patch)
tree63a01566730397c0267d238dca3f2f655d16b2dd /conf/local.d
parentb5ba154e32a7c72a2be852b50a92a7c681f5da04 (diff)
downloadrspamd-2fa3f26efff008ba65d8f32f5f41e71181d0bd59.tar.gz
rspamd-2fa3f26efff008ba65d8f32f5f41e71181d0bd59.zip
[Conf] Add more ways to extend Rspamd configuration
+ Add examples of all that we can do
Diffstat (limited to 'conf/local.d')
-rw-r--r--conf/local.d/module.conf.example20
1 files changed, 20 insertions, 0 deletions
diff --git a/conf/local.d/module.conf.example b/conf/local.d/module.conf.example
new file mode 100644
index 000000000..ba3d0b7bb
--- /dev/null
+++ b/conf/local.d/module.conf.example
@@ -0,0 +1,20 @@
+# Define local parameters that you need to merge with the main configuration from
+# either modules.d (for the modules shipped with Rspamd) or modules.local.d (for
+# the modules that you have written).
+#
+# !!! Ensure NOT to enclose your configuration in the outer block with the module
+
+# DON'T DO THIS:
+# module_name { <--- Don't do this
+# param = "other_value";
+# }
+
+# Just define your parameters here:
+
+param = "other_value";
+
+# Merge with the default complex param
+complex_param {
+ key = "new_value";
+}
+