1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jupyterlab_ynh.git synced 2024-09-03 19:26:35 +02:00

Adding update_config_files.md

This commit is contained in:
Kay0u 2020-04-10 19:25:39 +02:00
parent 7bc90952cb
commit 6587123f01
No known key found for this signature in database
GPG key ID: AE1DCADB6415A156
3 changed files with 35 additions and 5 deletions

View file

@ -91,9 +91,9 @@
# e.g. `c.JupyterHub.authenticator_class = 'pam'` # e.g. `c.JupyterHub.authenticator_class = 'pam'`
# #
# Currently installed: # Currently installed:
# - dummy: jupyterhub.auth.DummyAuthenticator
# - pam: jupyterhub.auth.PAMAuthenticator
# - default: jupyterhub.auth.PAMAuthenticator # - default: jupyterhub.auth.PAMAuthenticator
# - pam: jupyterhub.auth.PAMAuthenticator
# - dummy: jupyterhub.auth.DummyAuthenticator
c.JupyterHub.authenticator_class = 'ldapauthenticator.LDAPAuthenticator' c.JupyterHub.authenticator_class = 'ldapauthenticator.LDAPAuthenticator'
## The base URL of the entire application. ## The base URL of the entire application.
@ -108,7 +108,7 @@ c.JupyterHub.authenticator_class = 'ldapauthenticator.LDAPAuthenticator'
## The public facing URL of the whole JupyterHub application. ## The public facing URL of the whole JupyterHub application.
# #
# This is the address on which the proxy will bind. Sets protocol, ip, base_url # This is the address on which the proxy will bind. Sets protocol, ip, base_url
c.JupyterHub.bind_url = 'http://:__PORT____PATH__' #c.JupyterHub.bind_url = 'http://:8000'
## Whether to shutdown the proxy when the Hub shuts down. ## Whether to shutdown the proxy when the Hub shuts down.
# #
@ -466,8 +466,8 @@ c.ConfigurableHTTPProxy.api_url = 'http://127.0.0.1:__PORT_HTTP_PROXY__'
# e.g. `c.JupyterHub.spawner_class = 'localprocess'` # e.g. `c.JupyterHub.spawner_class = 'localprocess'`
# #
# Currently installed: # Currently installed:
# - simple: jupyterhub.spawner.SimpleLocalProcessSpawner
# - default: jupyterhub.spawner.LocalProcessSpawner # - default: jupyterhub.spawner.LocalProcessSpawner
# - simple: jupyterhub.spawner.SimpleLocalProcessSpawner
# - localprocess: jupyterhub.spawner.LocalProcessSpawner # - localprocess: jupyterhub.spawner.LocalProcessSpawner
#c.JupyterHub.spawner_class = 'jupyterhub.spawner.LocalProcessSpawner' #c.JupyterHub.spawner_class = 'jupyterhub.spawner.LocalProcessSpawner'

30
update_config_files.md Normal file
View file

@ -0,0 +1,30 @@
# Updating configuration files
Install the new version of the app with:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/jupyterlab_ynh/tree/testing
```
Navigate to the installation path (`/opt/jupyterlab` by default), and run :
```bash
pipenv shell
```
You are now in the virtual environment of jupyterlab. You can execute these two commands:
- To generate the `jupyterhub_config.py` file:
```bash
jupyterhub --generate-config
```
- To generate the `jupyter_notebook_config.py` file:
```bash
jupyter notebook --generate-config
cp $HOME/.jupyter/jupyter_notebook_config.py ./
```
You can now update the old template files with the new one.