Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ansible/deploy-notebook.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
- name: Deploy notebook host
hosts: notebook.ooni.org
hosts: notebook1.htz-fsn.prod.ooni.nu
become: true
tags:
- notebook
vars:
notebook_domain: "notebook.ooni.org"
ssl_domains:
- "{{ inventory_hostname }}"
- notebook1.htz-fsn.prod.ooni.nu notebook.ooni.org
roles:
- nginx
- dehydrated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,3 @@ clickhouse_default_users:
- "127.0.0.1"
profile: write
quota: default

# configure extra domains for dehydrated
ssl_domains:
- notebook1.htz-fns.prod.ooni.nu
- notebook.ooni.org
2 changes: 1 addition & 1 deletion ansible/inventory
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ghs_ams
## Role tags

[clickhouse]
notebook.ooni.org
notebook1.htz-fsn.prod.ooni.nu
data1.htz-fsn.prod.ooni.nu
data2.htz-fsn.prod.ooni.nu
data3.htz-fsn.prod.ooni.nu
Expand Down
8 changes: 7 additions & 1 deletion ansible/roles/notebook/templates/nginx-jupyterhub.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ map $http_upgrade $connection_upgrade {
server {
listen 80;
server_name {{ notebook_domain }};
return 301 https://$server_name$request_uri;
# Serve ACME challenge from disk
location ^~ /.well-known/acme-challenge {
alias /var/lib/dehydrated/acme-challenges;
}
location / {
return 301 https://$server_name$request_uri;
}
}

server {
Expand Down
Loading