From 626b15e8c3eb06c62fcdb4ec47a72c04217f4b9d Mon Sep 17 00:00:00 2001 From: Sean Mc Allister Date: Thu, 14 Jul 2016 10:54:23 +0200 Subject: [PATCH] Update README.rst Added some more text to explain usage behind proxy servers and inside process managers --- README.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.rst b/README.rst index 4ba1ca6..8c75c98 100644 --- a/README.rst +++ b/README.rst @@ -24,6 +24,21 @@ set a bind address and port (defaults to localhost, port 8000):: daphne -b 0.0.0.0 -p 8001 django_project.asgi:channel_layer +If you intend to run daphne behind a proxy server you can use UNIX +sockets to communicate between the two:: + + daphne -u /tmp/daphne.sock django_project.asgi:channel_layer + + +If daphne is being run inside a process manager such as +`Circus `_ you might +want it to bind to a file descriptor passed down from a parent process. +To achieve this you can use the --fd flag:: + + daphne --fd 5 django_project.asgi:channel_layer + +To see all available command line options run daphne with the *-h* flag. + Root Path (SCRIPT_NAME) -----------------------