Skip to content

Commit

Permalink
set host vars from ansible vault
Browse files Browse the repository at this point in the history
  • Loading branch information
DecFox committed Dec 7, 2024
1 parent 8f55d5d commit e86bb9c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
10 changes: 10 additions & 0 deletions ansible/host_vars/backend-fsn.ooni.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
s3_ooni_open_data_access_key: "{{ vault_s3_ooni_open_data_access_key }}"
amspg_ooni_org_onion_key: "{{ vault_amspg_ooni_org_onion_key }}"
jwt_encryption_key: "{{ vault_jwt_encryption_key }}"
account_id_hashing_key: "{{ vault_account_id_hashing_key }}"
github_token: "{{ vault_github_token }}"
mail_smtp_password: "{{ vault_mail_smtp_password }}"
base_url: "https://backend-fsn.ooni.org"
tor_targets: "{{ vault_tor_targets }}"
psiphon_config: "{{ vault_orchestra_psiphon_config_file_content }}"
digital_ocean_token: "{{ vault_digital_ocean_token }}"
8 changes: 8 additions & 0 deletions ansible/host_vars/backend-hel.ooni.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
s3_ooni_open_data_access_key: "{{ vault_s3_ooni_open_data_access_key }}"
jwt_encryption_key: "{{ vault_jwt_encryption_key }}"
account_id_hashing_key: "{{ vault_account_id_hashing_key }}"
github_token: "{{ vault_github_token }}"
mail_smtp_password: "{{ vault_mail_smtp_password }}"
base_url: "https://backend-hel.ooni.org"
tor_targets: "{{ vault_tor_targets }}"
psiphon_config: "{{ vault_orchestra_psiphon_config_file_content }}"
1 change: 0 additions & 1 deletion ansible/roles/ooni-backend/templates/dehydrated.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ CONFIG_D=/etc/dehydrated/conf.d
BASEDIR=/var/lib/dehydrated
WELLKNOWN="${BASEDIR}/acme-challenges"
DOMAINS_TXT="/etc/dehydrated/domains.txt"
HOOK="/etc/dehydrated/haproxy_hook.sh"
5 changes: 0 additions & 5 deletions ansible/roles/ooni-backend/templates/nginx-api.conf
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,6 @@ server {
return 200 "{{ inventory_hostname }}";
}

# Serve ACME challenge from disk
location ^~ /.well-known/acme-challenge {
alias /var/lib/dehydrated/acme-challenges;
}

location /metrics {
return 200 '';
}
Expand Down

0 comments on commit e86bb9c

Please sign in to comment.