From 78431987c0ba7aaaf7fd9b34d6042a5380a7e2d5 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 20 Feb 2015 16:54:01 +0000 Subject: Update documentation. --- doc/markdown/workers/index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc/markdown/workers') diff --git a/doc/markdown/workers/index.md b/doc/markdown/workers/index.md index a69138ecf..31d1d6b96 100644 --- a/doc/markdown/workers/index.md +++ b/doc/markdown/workers/index.md @@ -69,5 +69,16 @@ Moreover, you can specify systemd sockets if rspamd is invoked by systemd: bind_socket = "systemd:1"; # the first socket passed by systemd throught environment ~~~ +For unix sockets, it is also possible to specify owner and mode using this syntax: + +~~~nginx +bind_socket = "/tmp/rspamd.sock mode=0666 owner=user"; +~~~ + +Without owner and mode, rspamd uses the active user as owner (e.g. if started by root, +then `root` is used) and `0644` as access mask. Please mention that you need to specify +**octal** number for mode, namely prefixed by a zero. Otherwise, modes like `666` will produce +a weird result. + You can specify multiple `bind_socket` options to listen on as many addresses as you want. \ No newline at end of file -- cgit v1.2.3