Skip to content

Commit

Permalink
Handle base_url through env as well
Browse files Browse the repository at this point in the history
  • Loading branch information
bennybp committed Jan 17, 2025
1 parent 1d0510c commit ecc8ada
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docker/jupyterhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
This authenticates using QCArchive server usernames and passwords.
"""

import os

c = get_config() # noqa

# Get the base url from the environment
base_url = os.getenv("QCFRACTAL_JHUB_BASE_URL", "/")
c.JupyterHub.base_url = base_url

from qcarchive_authenticator import QCArchiveAuthenticator

c.JupyterHub.authenticator_class = QCArchiveAuthenticator
Expand All @@ -16,6 +22,5 @@
}

c.JupyterHub.allow_named_servers = True
c.JupyterHub.default_url = "/hub/home"

c.Authenticator.allow_all = True
c.Authenticator.allow_all = True

0 comments on commit ecc8ada

Please sign in to comment.