[rspamd] Allow to easily use custom rspamd lua plugins
Since rspamd 1.9.2 we'll be able to load custom modules from plugins.d directory. This allow to add and configure plugins easily from the data/conf/rspamd/plugins.d Also loading config for custom plugins need rspamd.conf.local or optionally rspamd.conf.override. I added support for this in the docker-compose.yml Idea came while i was writing a custom plugin for Cyren antispam gateway, which can be found here: https://github.com/sriccio/rspamd-plugins
This commit is contained in:
parent
0bd98d0a1a
commit
ef5cf81308
1
data/conf/rspamd/plugins.d/README.md
Normal file
1
data/conf/rspamd/plugins.d/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
This is where you should copy any rspamd custom module
|
1
data/conf/rspamd/rspamd.conf.local
Normal file
1
data/conf/rspamd/rspamd.conf.local
Normal file
@ -0,0 +1 @@
|
|||||||
|
# rspamd.conf.local
|
2
data/conf/rspamd/rspamd.conf.override
Normal file
2
data/conf/rspamd/rspamd.conf.override
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# rspamd.conf.override
|
||||||
|
|
@ -82,7 +82,10 @@ services:
|
|||||||
- ./data/conf/rspamd/custom/:/etc/rspamd/custom
|
- ./data/conf/rspamd/custom/:/etc/rspamd/custom
|
||||||
- ./data/conf/rspamd/override.d/:/etc/rspamd/override.d
|
- ./data/conf/rspamd/override.d/:/etc/rspamd/override.d
|
||||||
- ./data/conf/rspamd/local.d/:/etc/rspamd/local.d
|
- ./data/conf/rspamd/local.d/:/etc/rspamd/local.d
|
||||||
|
- ./data/conf/rspamd/plugins.d/:/etc/rspamd/plugins.d
|
||||||
- ./data/conf/rspamd/lua/:/etc/rspamd/lua/:ro
|
- ./data/conf/rspamd/lua/:/etc/rspamd/lua/:ro
|
||||||
|
- ./data/conf/rspamd/rspamd.conf.local:/etc/rspamd/rspamd.conf.local
|
||||||
|
- ./data/conf/rspamd/rspamd.conf.override:/etc/rspamd/rspamd.conf.override
|
||||||
- rspamd-vol-1:/var/lib/rspamd
|
- rspamd-vol-1:/var/lib/rspamd
|
||||||
restart: always
|
restart: always
|
||||||
dns:
|
dns:
|
||||||
|
Loading…
Reference in New Issue
Block a user