mirror of https://github.com/infosecn1nja/HELK.git
Added user to the Jupyter spawner and notebook_dir
parent
4184706206
commit
6c8b81b316
|
@ -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'
|
Loading…
Reference in New Issue