Run the rspamd controller
This commit is contained in:
@@ -2,9 +2,12 @@ FROM alpine:edge
|
|||||||
|
|
||||||
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
||||||
&& apk add --update \
|
&& apk add --update \
|
||||||
rspamd@testing rsyslog \
|
rspamd@testing \
|
||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
RUN mkdir /run/rspamd
|
RUN mkdir /run/rspamd
|
||||||
|
|
||||||
CMD ["rspamd", "-f", "-i"]
|
COPY conf/ /etc/rspamd
|
||||||
|
COPY start.sh /start.sh
|
||||||
|
|
||||||
|
CMD ["/start.sh"]
|
||||||
|
|||||||
11
rspamd/conf/worker.d/controller.conf
Normal file
11
rspamd/conf/worker.d/controller.conf
Normal file
@@ -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"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user