.include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/logging.inc"
}
-worker {
+worker "normal" {
bind_socket = "*:11333";
.include "$CONFDIR/worker-normal.inc"
.include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/worker-normal.inc"
.include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/worker-normal.inc"
}
-worker {
+worker "controller" {
bind_socket = "localhost:11334";
.include "$CONFDIR/worker-controller.inc"
.include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/worker-controller.inc"
.include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/worker-controller.inc"
}
+
+worker "rspamd_proxy" {
+ bind_socket = "*:11332";
+ .include "$CONFDIR/worker-proxy.inc"
+ .include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/worker-proxy.inc"
+ .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/worker-proxy.inc"
+}
\ No newline at end of file
.include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/worker-controller.inc"
}
+worker "rspamd_proxy" {
+ bind_socket = "*:11332";
+ .include "$CONFDIR/worker-proxy.inc"
+ .include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/worker-proxy.inc"
+ .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/worker-proxy.inc"
+}
+
# Local fuzzy storage is disabled by default
#worker {
--- /dev/null
+# Included from top-level .conf file
+
+type = "proxy";
+
+milter = yes; # Enable milter mode
+timeout = 120s; # Needed for Milter usually
+
+upstream "local" {
+ default = yes;
+ hosts = "localhost";
+}
+
+count = 1; # Do not spawn too many processes of this type