Skip to content

Commit

Permalink
Run the rspamd controller
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiyou committed Jun 19, 2016
1 parent b5e68a4 commit 5c5e3d5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
9 changes: 6 additions & 3 deletions rspamd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
COPY conf/ /etc/rspamd
COPY start.sh /start.sh

CMD ["/start.sh"]
11 changes: 11 additions & 0 deletions rspamd/conf/worker.d/controller.conf
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 5c5e3d5

Please sign in to comment.