mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 22:13:00 +00:00
add entrypoint for proxy implementations
This commit is contained in:
@@ -421,9 +421,18 @@ class JupyterHub(Application):
|
||||
help="Supply extra arguments that will be passed to Jinja environment."
|
||||
).tag(config=True)
|
||||
|
||||
proxy_class = Type(ConfigurableHTTPProxy, Proxy,
|
||||
help="""Select the Proxy API implementation."""
|
||||
).tag(config=True)
|
||||
proxy_class = EntryPointType(
|
||||
default_value=ConfigurableHTTPProxy,
|
||||
klass=Proxy,
|
||||
help="""The class to use for configuring the JupyterHub proxy.
|
||||
|
||||
Should be a subclass of :class:`jupyterhub.proxy.Proxy`.
|
||||
|
||||
.. versionchanged:: 1.0
|
||||
proxies may be registered via entry points,
|
||||
e.g. `c.JupyterHub.proxy_class = 'traefik'`
|
||||
"""
|
||||
).tag(config=True)
|
||||
|
||||
proxy_cmd = Command([], config=True,
|
||||
help="DEPRECATED since version 0.8. Use ConfigurableHTTPProxy.command",
|
||||
|
4
setup.py
4
setup.py
@@ -112,6 +112,10 @@ setup_args = dict(
|
||||
'pam = jupyterhub.auth:PAMAuthenticator',
|
||||
'dummy = jupyterhub.auth:DummyAuthenticator',
|
||||
],
|
||||
'jupyterhub.proxies': [
|
||||
'default = jupyterhub.proxy:ConfigurableHTTPProxy',
|
||||
'configurable-http-proxy = jupyterhub.proxy:ConfigurableHTTPProxy',
|
||||
],
|
||||
'jupyterhub.spawners': [
|
||||
'default = jupyterhub.spawner:LocalProcessSpawner',
|
||||
'localprocess = jupyterhub.spawner:LocalProcessSpawner',
|
||||
|
Reference in New Issue
Block a user