NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Commit

Add config files to Rspamd

608cb8ad
andryyy <[email protected]> 9 years ago
data/Dockerfiles/rspamd/Dockerfile     | 5 +++--
 data/Dockerfiles/rspamd/antivirus.conf | 4 ++++
 data/Dockerfiles/rspamd/settings.conf  | 1 +
 3 files changed, 8 insertions(+), 2 deletions(-)
 create mode 100644 data/Dockerfiles/rspamd/antivirus.conf
 create mode 100644 data/Dockerfiles/rspamd/settings.conf

Diff

diff --git a/data/Dockerfiles/rspamd/Dockerfile b/data/Dockerfiles/rspamd/Dockerfile
index 028f2abb..14437c0e 100644
--- a/data/Dockerfiles/rspamd/Dockerfile
+++ b/data/Dockerfiles/rspamd/Dockerfile
@@ -15,8 +15,9 @@ RUN apt-key adv --fetch-keys http://rspamd.com/apt-stable/gpg.key \
     && apt-get -y install rspamd ca-certificates python-pip
 
 RUN echo '.include $LOCAL_CONFDIR/local.d/rspamd.conf.local' > /etc/rspamd/rspamd.conf.local
-# "Hardcoded" - we need them
-RUN echo 'settings = "http://nginx:8081/settings.php";' > /etc/rspamd/modules.d/settings.conf
+
+ADD settings.conf /etc/rspamd/modules.d/settings.conf
+ADD antivirus.conf /etc/rspamd/modules.d/antivirus.conf
 
 RUN pip install -U oletools
 
diff --git a/data/Dockerfiles/rspamd/antivirus.conf b/data/Dockerfiles/rspamd/antivirus.conf
new file mode 100644
index 00000000..cb8049d4
--- /dev/null
+++ b/data/Dockerfiles/rspamd/antivirus.conf
@@ -0,0 +1,4 @@
+antivirus {
+	.include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/antivirus.conf"
+	.include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/antivirus.conf"
+}
diff --git a/data/Dockerfiles/rspamd/settings.conf b/data/Dockerfiles/rspamd/settings.conf
new file mode 100644
index 00000000..4449f091
--- /dev/null
+++ b/data/Dockerfiles/rspamd/settings.conf
@@ -0,0 +1 @@
+settings = "http://nginx:8081/settings.php";