From 5c5e3d5d2f1f04ff0b5378423681718878adff46 Mon Sep 17 00:00:00 2001 From: Pierre Jaury Date: Sun, 19 Jun 2016 21:56:20 +0200 Subject: [PATCH] Run the rspamd controller --- rspamd/Dockerfile | 9 ++++++--- rspamd/conf/worker.d/controller.conf | 11 +++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 rspamd/conf/worker.d/controller.conf diff --git a/rspamd/Dockerfile b/rspamd/Dockerfile index 068404d7..fcbb5ed9 100644 --- a/rspamd/Dockerfile +++ b/rspamd/Dockerfile @@ -2,9 +2,12 @@ FROM alpine:edge RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \ && apk add --update \ - rspamd@testing rsyslog \ + rspamd@testing \ && rm -rf /var/cache/apk/* - + RUN mkdir /run/rspamd -CMD ["rspamd", "-f", "-i"] \ No newline at end of file +COPY conf/ /etc/rspamd +COPY start.sh /start.sh + +CMD ["/start.sh"] diff --git a/rspamd/conf/worker.d/controller.conf b/rspamd/conf/worker.d/controller.conf new file mode 100644 index 00000000..5434527c --- /dev/null +++ b/rspamd/conf/worker.d/controller.conf @@ -0,0 +1,11 @@ +worker { + bind_socket = "0.0.0.0:11334"; + type = "controller"; + count = 1; + password = "q1"; + secure_ip = "127.0.0.1"; + secure_ip = "::1"; + static_dir = "${WWWDIR}"; + .include(try=true; priority=1) "$LOCAL_CONFDIR/local.d/worker-controller.inc" + .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/worker-controller.inc" +}