Skip to main content

JupyterHub proxy implementation with traefik

Project description

JupyterHub Traefik Proxy

Documentation build status GitHub Workflow Status Latest PyPI version GitHub Discourse Gitter

When JupyterHub starts a server for a user, it will dynamically configure a proxy server so that accessing jupyterhub.example.com/user/<user> routes to the individual Jupyter server. This project contains what JupyterHub need to dynamically configure the routes of a traefik proxy server! There are three implementations of the JupyterHub proxy API, depending on how traefik store its routing configuration.

For smaller, single-node deployments:

  • TraefikFileProviderProxy

For distributed setups:

  • TraefikEtcdProxy
  • TraefikConsulProxy

Installation

The documentation contains a complete installation guide with examples for the three different implementations.

Running tests

There are some tests that use etcdctl command line client for etcd. Make sure to set environment variable ETCDCTL_API=3 before running the tests, so that the v3 API to be used, e.g.:

$ export ETCDCTL_API=3

You can then run the all the test suite from the traefik-proxy directory with:

$ pytest -v ./tests

Or you can run a specific test file with:

$ pytest -v ./tests/<test-file-name>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyterhub-traefik-proxy-1.0.0b2.tar.gz (33.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupyterhub_traefik_proxy-1.0.0b2-py3-none-any.whl (32.0 kB view details)

Uploaded Python 3

File details

Details for the file jupyterhub-traefik-proxy-1.0.0b2.tar.gz.

File metadata

File hashes

Hashes for jupyterhub-traefik-proxy-1.0.0b2.tar.gz
Algorithm Hash digest
SHA256 ecd9ab85ade73493d3e0515a5abaac069c250b4b047455f3d4b6d26aab466be1
MD5 ec5eee722d853a30db0f604c2a75c799
BLAKE2b-256 251dda0f1486dec24ddd278a65e820f763794522559d485941c5aed3167aa150

See more details on using hashes here.

File details

Details for the file jupyterhub_traefik_proxy-1.0.0b2-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterhub_traefik_proxy-1.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 57849ef678cffc45c93ac4a85b34d75a532e4b605ba23319b892ee1a25adf6eb
MD5 4d3ac17bdb168a40c36b32cade68afd7
BLAKE2b-256 cdd37ddef11a67b751f66306eb6a5bbae54b61ce954c6e06d1cd338c0b4415e7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page