more advanced pattern matching on URL paths of Web service configuration
more advanced configuration file format for Web service trees (the internal management API already has that power .. only the config.json is lacking because it uses URL paths for dict keys, whereas that should also be just a list of Web services (like workers) OR at least use Web service configuration item IDs for dict keys instead of URL paths.
Here is how Nginx can be configured to reverse proxy to Jupyter:
source: https://gist.github.com/cboettig/8643341bd3c93b62b5c2
this has a regex to exactly match what paths are to be reverse proxied with websocket:
/(api/kernels/[^/]+/(channels|iopub|shell|stdin)|terminals/websocket)/?
to replicate that, we need 2 things:
config.json
is lacking because it uses URL paths for dict keys, whereas that should also be just a list of Web services (like workers) OR at least use Web service configuration item IDs for dict keys instead of URL paths.