Skip to content

Commit

Permalink
Fix jupyterhub configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Oct 1, 2024
1 parent d391cb6 commit 98cacf9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions ansible/host_vars/oonidata.ooni.org
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
admin_group_name: adm
tls_cert_dir: /var/lib/dehydrated/certs
1 change: 1 addition & 0 deletions ansible/roles/oonidata/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ miniconda_install_dir: /opt/miniconda
jupyterhub_config_dir: /etc/jupyterhub
jupyterhub_runtime_dir: /srv/jupyterhub
oonipipeline_runtime_dir: /srv/oonipipeline
tls_cert_dir: /etc/letsencrypt/live
admin_group_name: admin
enable_oonipipeline_worker: true
enable_jupyterhub: true
1 change: 1 addition & 0 deletions ansible/roles/oonidata/templates/jupyterhub_config.py.j2
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
c.JupyterHub.bind_url = 'http://127.0.0.1:8888'
c.Spawner.cmd = ['{{ miniconda_install_dir }}/bin/jupyterhub-singleuser']
c.Authenticator.allow_all = True
8 changes: 4 additions & 4 deletions ansible/roles/oonidata/templates/nginx-jupyterhub.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ server {

include /etc/nginx/ssl_intermediate.conf;

ssl_certificate /etc/letsencrypt/live/{{ inventory_hostname }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ inventory_hostname }}/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/{{ inventory_hostname }}/chain.pem;
ssl_certificate {{ tls_cert_dir }}/{{ inventory_hostname }}/fullchain.pem;
ssl_certificate_key {{ tls_cert_dir }}/{{ inventory_hostname }}/privkey.pem;
ssl_trusted_certificate {{ tls_cert_dir }}/{{ inventory_hostname }}/chain.pem;

server_name _;
access_log /var/log/nginx/{{ inventory_hostname }}.access.log;
Expand All @@ -37,4 +37,4 @@ server {
proxy_set_header X-Scheme $scheme;
proxy_buffering off;
}
}
}

0 comments on commit 98cacf9

Please sign in to comment.