diff options
| author | alex <alex@pdp7.net> | 2024-03-14 20:30:31 +0100 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2024-03-14 20:30:31 +0100 |
| commit | d71d92f0a54e4cd67f37153740328fe08801c237 (patch) | |
| tree | f9fad7e7ed22d5380c2e07e9586133ad1871c069 /personal_infra/playbooks | |
| parent | 0adbca7988de803a3c2910c73956ee249c28b3e6 (diff) | |
WIP more takahe
* Add s3 auth
* Send error emails
Diffstat (limited to 'personal_infra/playbooks')
| -rw-r--r-- | personal_infra/playbooks/roles/takahe/tasks/main.yaml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/personal_infra/playbooks/roles/takahe/tasks/main.yaml b/personal_infra/playbooks/roles/takahe/tasks/main.yaml index 44ad0c40..ce3767ea 100644 --- a/personal_infra/playbooks/roles/takahe/tasks/main.yaml +++ b/personal_infra/playbooks/roles/takahe/tasks/main.yaml @@ -16,6 +16,7 @@ data: TAKAHE_SECRET_KEY: "{{ takahe.secret_key | b64encode }}" TAKAHE_EMAIL_SERVER: "{{ ('smtp://' + mail.ses_username + ':' + mail.ses_password + '@' + mail.ses_endpoint + ':25?tls=true') | b64encode }}" + TAKAHE_MEDIA_BACKEND: "{{ (takahe.s3_proto + '://' + takahe.s3_access_key + ':' + takahe.s3_secret_key + '@' + takahe.s3_endpoint + '/' + takahe.s3_bucket) | b64encode }}" delegate_to: 127.0.0.1 - k8s: context: "{{ context }}" @@ -29,12 +30,12 @@ PGHOST: "{{ takahe.database_host }}" PGUSER: "{{ takahe.database_user }}" PGDATABASE: "{{ takahe.database }}" - TAKAHE_MEDIA_BACKEND: "{{ takahe.s3 }}" TAKAHE_MAIN_DOMAIN: "{{ takahe.main_domain }}" TAKAHE_EMAIL_FROM: "{{ takahe.email_from }}" TAKAHE_USE_PROXY_HEADERS: "true" TAKAHE_AUTO_ADMIN_EMAIL: "{{ takahe.admin_email }}" TAKAHE_CSRF_HOSTS: "{{ ['https://' + takahe.main_domain] | to_json }}" + TAKAHE_ERROR_EMAILS: "{{ [takahe.admin_email] | to_json }}" delegate_to: 127.0.0.1 - k8s: context: "{{ context }}" |
