Fix the data dir. Add the trusted alt names.
This commit is contained in:
parent
9d66710f4b
commit
80c74125aa
|
@ -4,12 +4,18 @@ jupyter_lab: True
|
|||
jupyter_notebook: True
|
||||
jupyter_hub_ssl_enabled: True
|
||||
jupyter_hub_letsencrypt_ssl: False
|
||||
jupyter_hub_recreate_internal_certs: False
|
||||
jupyter_hub_upgrade_db: True
|
||||
jupyter_hub_logrotate_maxfilesize: '1G'
|
||||
jupyter_hub_logrotate_retention: '7'
|
||||
jupyter_hub_external_proxy: False
|
||||
jupyter_hub_external_proxy_ips:
|
||||
- '127.0.0.1'
|
||||
|
||||
jupyter_hub_trusted_alt_names:
|
||||
- '127.0.0.1'
|
||||
- 'localhost'
|
||||
|
||||
jupyter_hub_ip: '127.0.0.1'
|
||||
|
||||
jupyter_hub_bind_ip: '127.0.0.1'
|
||||
|
|
|
@ -359,7 +359,7 @@ c.JupyterHub.named_server_limit_per_user = {{ jupyter_hub_concurred_named_server
|
|||
# Note: enabling this feature requires restarting all notebook servers.
|
||||
#
|
||||
# Use with internal_ssl
|
||||
#c.JupyterHub.recreate_internal_certs = False
|
||||
c.JupyterHub.recreate_internal_certs = {{ jupyter_hub_recreate_internal_certs }}
|
||||
|
||||
## Redirect user to server (if running), instead of control panel.
|
||||
#c.JupyterHub.redirect_to_server = True
|
||||
|
@ -488,7 +488,7 @@ c.JupyterHub.ssl_key = '{{ letsencrypt_acme_sh_certificates_install_path }}/priv
|
|||
# different hosts.
|
||||
#
|
||||
# Use with internal_ssl
|
||||
#c.JupyterHub.trusted_alt_names = []
|
||||
c.JupyterHub.trusted_alt_names = [ {% for h in jupyter_hub_trusted_alt_names %}'{{ h }}'{% if not loop.last %},{% endif %} {% endfor %} ]
|
||||
|
||||
## Downstream proxy IP addresses to trust.
|
||||
#
|
||||
|
@ -504,7 +504,7 @@ c.JupyterHub.trusted_downstream_ips = [ {% for ip in jupyter_hub_external_proxy_
|
|||
#
|
||||
# Only safe if database is regularly backed up. Only SQLite databases will be
|
||||
# backed up to a local file automatically.
|
||||
#c.JupyterHub.upgrade_db = False
|
||||
c.JupyterHub.upgrade_db = {{ jupyter_hub_upgrade_db }}
|
||||
|
||||
## Callable to affect behavior of /user-redirect/
|
||||
#
|
||||
|
|
|
@ -8,7 +8,8 @@ jupyter_hub_user_home: /srv/jupyterhub
|
|||
jupyter_hub_venv: jupyterhub_env
|
||||
jupyter_hub_base_dir: '/opt/jupyterhub'
|
||||
jupyter_hub_conf_dir: '{{ jupyter_hub_base_dir }}/etc'
|
||||
jupyter_hub_data_dir: '{{ jupyter_hub_base_dir }}/data'
|
||||
#jupyter_hub_data_dir: '{{ jupyter_hub_base_dir }}/data'
|
||||
jupyter_hub_data_dir: '/usr/local/share/jupyterhub'
|
||||
jupyter_hub_conf: '{{ jupyter_hub_conf_dir }}/jupyterhub_config.py'
|
||||
jupyter_hub_venv_dir: '/opt/{{ jupyter_hub_venv }}'
|
||||
jupyter_hub_logdir: /var/log/jupyter
|
||||
|
|
Loading…
Reference in New Issue