daphne

This program follows the usual GNU command line syntax, with long options starting with
two dashes (`-'). A summary of options is included below.

-h --help
Show help message and exit.

-p PORT --port PORT
Port number to listen on.

-b HOST --bind HOST
The host/address to bind to.

--websocket_timeout WEBSOCKET_TIMEOUT
Maximum time to allow a websocket to be connected. -1 for infinite.

--websocket_connect_timeout WEBSOCKET_CONNECT_TIMEOUT
Maximum time to allow a connection to handshake. -1 for infinite.

-u UNIX_SOCKET --unix-socket UNIX_SOCKET
Bind to a UNIX socket rather than a TCP host/port.

--fd FILE_DESCRIPTOR
Bind to a file descriptor rather than a TCP host/port or named unix socket.

-e SOCKET_STRINGS --endpoint SOCKET_STRINGS
Use raw server strings passed directly to twisted.

-v VERBOSITY --verbosity VERBOSITY
How verbose to make the output.

-t HTTP_TIMEOUT --http-timeout HTTP_TIMEOUT
How long to wait for worker server before timing out HTTP connections.

--access-log ACCESS_LOG
Where to write the access log (- for stdout, the default for verbosity=1).

--ping-interval PING_INTERVAL
The number of seconds a WebSocket must be idle before a keepalive ping is sent.

--ping-timeout PING_TIMEOUT
The number of seconds before a WebSocket is closed if no response to a keepalive
ping.

--ws-protocol WS_PROTOCOLS [WS_PROTOCOLS]
The WebSocket protocols you wish to support.

--root-path ROOT_PATH
The setting for the ASGI root_path variable.

--proxy-headers
Enable parsing and using of X-Forwarded-For and X-Forwarded-Port headers and
using that as the client address.

--force-sync
Force the server to use synchronous mode on its ASGI channel layer.

posted @ 2022-09-26 16:23  _Otis  阅读(149)  评论(0)    收藏  举报