From 8d7ce49101ede809b3501e429e48a6d2ec23e926 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 28 Oct 2022 23:06:10 +0200 Subject: [PATCH] website/docs: add docs for using email templates with helm chart closes #3891 Signed-off-by: Jens Langhammer --- .../flow/stages/email/{index.md => index.mdx} | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) rename website/docs/flow/stages/email/{index.md => index.mdx} (86%) diff --git a/website/docs/flow/stages/email/index.md b/website/docs/flow/stages/email/index.mdx similarity index 86% rename from website/docs/flow/stages/email/index.md rename to website/docs/flow/stages/email/index.mdx index 51472df4a..3e1115687 100644 --- a/website/docs/flow/stages/email/index.md +++ b/website/docs/flow/stages/email/index.mdx @@ -25,8 +25,48 @@ return True You can also use custom email templates, to use your own design or layout. +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + + + Place any custom templates in the `custom-templates` Folder, which is in the same folder as your docker-compose file. Afterwards, you'll be able to select the template when creating/editing an Email stage. + + +Create a ConfigMap with your email templates: + +```yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: authentik-templates + namespace: authentik +data: + my-template.html: | + ... +``` + +Then, in the helm chart add this to your `values.yaml` file: + +```yaml +volumes: + - name: email-templates + configMap: + name: authentik-templates +volumeMounts: + - name: email-templates + mountPath: /templates +``` + + + + :::info This is currently only supported for docker-compose installs, and supported starting version 0.15. :::