Added user to the Jupyter spawner and notebook_dir

keyword-vs-text-changes
nicholasaleks 2019-02-17 17:52:06 -05:00
parent 4184706206
commit 6c8b81b316
1 changed files with 4 additions and 3 deletions

View File

@ -3,14 +3,15 @@
# Author: Roberto Rodriguez (@Cyb3rWard0g)
# License: GPL-3.0
#c = get_config()
import getpass
user = getpass.getuser()
c.JupyterHub.log_level = 10
c.Authenticator.admin_users = {'helk'}
c.Spawner.cmd = ['jupyter-labhub']
c.Spawner.notebook_dir = '/opt/helk/jupyterhub'
c.Spawner.notebook_dir = '/opt/helk/jupyterhub/{user}'.format(user=user)
c.NotebookApp.notebook_dir = '/opt/helk/jupyterhub/{user}'.format(user=user)
c.JupyterHub.hub_ip = 'helk-jupyter'
c.JupyterHub.port = 8000
c.JupyterHub.base_url = '/jupyter'