Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a custom login page #44

Closed
skoulouzis opened this issue Jan 10, 2022 · 3 comments
Closed

Add a custom login page #44

skoulouzis opened this issue Jan 10, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request Priority: Hight The issue's priority

Comments

@skoulouzis
Copy link
Member

We can use this: https://professorkazarinoff.github.io/jupyterhub-engr114/login_page/

@skoulouzis skoulouzis added enhancement New feature or request Priority: Hight The issue's priority labels Jan 10, 2022
@skoulouzis skoulouzis self-assigned this Jan 14, 2022
@skoulouzis
Copy link
Member Author

skoulouzis commented Jan 18, 2022

Found configuration for k8s: jupyterhub/jupyterhub#1385

@skoulouzis
Copy link
Member Author

Try to use:

hub:
  initContainers:
    - name: git-clone-templates
      image: bitnami/git:latest
      args:
        - clone
        - --single-branch
        - --branch=develop
        - --depth=1
        - https://<GITHUB_PAT>@github.com/<REPO_NAME>/
        - ~/jupyterhub/custom
      securityContext:
        runAsUser: 0
      volumeMounts:
        - name: hub-templates
          mountPath: ~/jupyterhub/custom
  extraVolumes:
    - name: hub-templates
      emptyDir: {}
  extraVolumeMounts:
    - name: hub-templates
      mountPath: /home/jovyan/jupyterhub/custom
  extraConfig:
    customLoginTemplates.py: |
      c.JupyterHub.template_paths = ['/home/jovyan/jupyterhub/custom/<PATH_TO_HTML_TEMPLATES>']

@skoulouzis
Copy link
Member Author

Created project with templates for login.html home.html etc.
https://github.com/QCDIS/k8s-jhub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Priority: Hight The issue's priority
Projects
None yet
Development

No branches or pull requests

1 participant