File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ Server Process options
1818Server Processes are configured with a dictionary of key value
1919pairs.
2020
21+ .. _server-process-cmd :
22+
2123``command ``
2224^^^^^^^^^^^
2325
2628 * A list of strings that is the command used to start the
2729 process. The following template strings will be replaced:
2830
29- * ``{port} `` the port the process should listen on.
31+ * ``{port} `` the port (or path if :ref: `server-process-unix-socket ` is True)
32+ that the process should listen on.
3033
3134 * ``{base_url} `` the base URL of the notebook
3235
@@ -95,6 +98,23 @@ pairs.
9598 Set the port that the service will listen on. The default is to
9699 automatically select an unused port.
97100
101+ .. _server-process-unix-socket :
102+
103+ ``unix_socket ``
104+ ^^^^^^^^^^^^^^^
105+
106+ If *True *, the server will listen on a Unix socket at a filesystem path, instead
107+ of a TCP port. The ``{port} `` argument (see :ref: `server-process-cmd `) will be a
108+ filesystem path for this socket instead of a port number. The server should
109+ create a Unix socket bound to this path and listen for HTTP requests on it.
110+
111+ The Unix socket will only be available to the user the server belongs to,
112+ whereas TCP sockets are available to any users on the same host.
113+
114+ If this is used, the ``port `` configuration key is ignored.
115+
116+ Defaults to *False *.
117+
98118
99119``mappath ``
100120^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments