From c00ab53269f6e6ab878dd8040f0738361730df72 Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Thu, 1 Aug 2024 13:46:21 +0200 Subject: [PATCH] Update environment variables re: https://git.data.coop/data.coop/membersystem/issues/38 --- group_vars/all/secrets.yml.contents | 4 +++- roles/docker/defaults/main.yml | 2 +- roles/docker/templates/compose-files/membersystem.yml.j2 | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/group_vars/all/secrets.yml.contents b/group_vars/all/secrets.yml.contents index 7ba62f6..3752730 100644 --- a/group_vars/all/secrets.yml.contents +++ b/group_vars/all/secrets.yml.contents @@ -55,6 +55,8 @@ rallly_secrets: membersystem_secrets: secret_key: xxx + stripe_api_key: xxx + stripe_endpoint_secret: xxx diun: - matrix_password: xxx \ No newline at end of file + matrix_password: xxx diff --git a/roles/docker/defaults/main.yml b/roles/docker/defaults/main.yml index bc6232d..cb4cf8c 100644 --- a/roles/docker/defaults/main.yml +++ b/roles/docker/defaults/main.yml @@ -193,7 +193,7 @@ services: membersystem: domain: "member.{{ base_domain }}" - django_admins: "Vidir:valberg@orn.li" + django_admins: "Vidir:valberg@orn.li Balder:benjaoming@data.coop" volume_folder: "{{ volume_root_folder }}/membersystem" version: latest postgres_version: 13-alpine diff --git a/roles/docker/templates/compose-files/membersystem.yml.j2 b/roles/docker/templates/compose-files/membersystem.yml.j2 index fae3767..795080a 100644 --- a/roles/docker/templates/compose-files/membersystem.yml.j2 +++ b/roles/docker/templates/compose-files/membersystem.yml.j2 @@ -26,6 +26,8 @@ services: CSRF_TRUSTED_ORIGINS: https://{{ services.membersystem.domain }} DJANGO_ADMINS: "{{ services.membersystem.django_admins }}" DEFAULT_FROM_EMAIL: noreply@{{ services.membersystem.domain }} + STRIPE_API_KEY: "{{ membersystem_secrets.stripe_api_key }}" + STRIPE_ENDPOINT_SECRET: "{{ membersystem_secrets.stripe_endpoint_secret }}" depends_on: - postgres