@@ -146,8 +146,9 @@ class ServerProxy(Configurable):
146146 Value should be a dictionary with the following keys:
147147 command
148148 An optional list of strings that should be the full command to be executed.
149- The optional template arguments {{port}} and {{base_url}} will be substituted with the
150- port the process should listen on and the base-url of the notebook.
149+ The optional template arguments {{port}}, {{unix_socket}} and {{base_url}}
150+ will be substituted with the port or Unix socket path the process should
151+ listen on and the base-url of the notebook.
151152
152153 Could also be a callable. It should return a list.
153154
@@ -157,7 +158,7 @@ class ServerProxy(Configurable):
157158
158159 environment
159160 A dictionary of environment variable mappings. As with the command
160- traitlet, {{port}} and {{base_url}} will be substituted.
161+ traitlet, {{port}}, {{unix_socket}} and {{base_url}} will be substituted.
161162
162163 Could also be a callable. It should return a dictionary.
163164
@@ -171,6 +172,13 @@ class ServerProxy(Configurable):
171172 port
172173 Set the port that the service will listen on. The default is to automatically select an unused port.
173174
175+ unix_socket
176+ If set, the service will listen on a Unix socket instead of a TCP port.
177+ Set to True to use a socket in a new temporary folder, or a string
178+ path to a socket. This overrides port.
179+
180+ Proxying websockets over a Unix socket requires Tornado >= 6.3.
181+
174182 mappath
175183 Map request paths to proxied paths.
176184 Either a dictionary of request paths to proxied paths,
@@ -202,7 +210,7 @@ class ServerProxy(Configurable):
202210
203211 request_headers_override
204212 A dictionary of additional HTTP headers for the proxy request. As with
205- the command traitlet, {{port}} and {{base_url}} will be substituted.
213+ the command traitlet, {{port}}, {{unix_socket}} and {{base_url}} will be substituted.
206214
207215 rewrite_response
208216 An optional function to rewrite the response for the given service.
0 commit comments