From 92fdfd252a1775e42e4e88ea22620af4a9cd9427 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 22 Sep 2022 08:47:01 +0100 Subject: [PATCH] Add email to authentik --- .../roles/authentik/files/docker-compose.yml | 6 +++++ ansible/roles/authentik/vars/main.yml | 3 +++ ansible/roles/authentik/vars/vault.yml | 26 +++++++++++++------ 3 files changed, 27 insertions(+), 8 deletions(-) diff --git a/ansible/roles/authentik/files/docker-compose.yml b/ansible/roles/authentik/files/docker-compose.yml index d52051e..df2627f 100644 --- a/ansible/roles/authentik/files/docker-compose.yml +++ b/ansible/roles/authentik/files/docker-compose.yml @@ -12,6 +12,12 @@ x-authentik: &authentik - AUTHENTIK_POSTGRESQL__PASSWORD=authentik - AUTHENTIK_SECRET_KEY="{{ authentik_secret_key }}" - AUTHENTIK_DISABLE_STARTUP_ANALYTICS=true # Sending the hash of my secret key? No thanks + - AUTHENTIK_EMAIL__HOST=smtp.eu.mailgun.org + - AUTHENTIK_EMAIL__PORT=465 + - AUTHENTIK_EMAIL__USERNAME={{ authentik_email_username }} + - AUTHENTIK_EMAIL__PASSWORD={{ authentik_email_password }} + - AUTHENTIK_EMAIL__USE_TLS=true + - AUTHENTIK_EMAIL__FROM={{ authentik_email_from }} volumes: - "{{ app_data_dir }}/authentik/media:/media" - "{{ app_data_dir }}/authentik/custom-templates:/templates" diff --git a/ansible/roles/authentik/vars/main.yml b/ansible/roles/authentik/vars/main.yml index 70191a0..d20adb1 100644 --- a/ansible/roles/authentik/vars/main.yml +++ b/ansible/roles/authentik/vars/main.yml @@ -1 +1,4 @@ authentik_secret_key: "{{ vault_authentik_secret_key }}" +authentik_email_username: "{{ vault_authentik_email_username }}" +authentik_email_password: "{{ vault_authentik_email_password }}" +authentik_email_from: "{{ vault_authentik_email_from }}" diff --git a/ansible/roles/authentik/vars/vault.yml b/ansible/roles/authentik/vars/vault.yml index b150220..2051e58 100644 --- a/ansible/roles/authentik/vars/vault.yml +++ b/ansible/roles/authentik/vars/vault.yml @@ -1,9 +1,19 @@ $ANSIBLE_VAULT;1.1;AES256 -36393735346231366132626665313535323561383032343832363437313735646262356436336432 -3264356265333862373135653934633066656339373338650a326231363935623237303238616432 -64353361626637623934393032346338356266393332643038353936633832646333373065393733 -3133383063616163340a363663616564646265336535313265313731613939366364623164333138 -35616330393565643863393863306266386239393063373937303362393531373861626163643831 -30333035356230353139326263626265343631323532663664646565303530626164626464373162 -61373166373333363738363830356335653362383335303134323966363935366333383436386636 -62353535393366393638 +32393634306638613666643266653033656339366533633839383665653164383862393839323933 +6664613835646261643834336263616139623932386632300a393030393837363835373634303938 +34353732653634386137313261316139636461663765623031383934656162393931336333376661 +3766663461356565360a663434386664396433666235313266333162643066383032633838653736 +32623364326533663465343833653533333032663733356134376437356461373066656365393066 +65373135353137346134363061663938653036316330663230616534663936646262663461333432 +35663833343131636135363136386532373237363939623733306638646535633533316132633931 +39386636343638636133383264333433363666643464643839303031643630353362383639373332 +38336335323937646431303336336466633266333136313765633030636430336462373733303164 +32643534643839316631336361663765313862663162646139313665356264643465306333653634 +36363336653134663863333536316237376163656161396464643866376136626533643930613039 +63646130356530363730336631356562313561346139356633376530633831323036363866383964 +33616236626561343135356339663032373536623262336262343539393965643431393037326639 +61623632343830653436306339306431643831353732313265626238643333633035356665623439 +37666132313761653239666536656538343762333339636136653538623539373865643662333431 +37306138356639626639616339376438356638623138623939333161393365316239306135306364 +30333538333833323764653336636433663862663239663336313235333238303932626134626532 +3434343261396162623339363538336539393039346562636366