root: save email template directory in config

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-09-28 18:51:34 +02:00
parent 0c48b40848
commit cd1a36fec4
2 changed files with 2 additions and 1 deletions

View File

@ -48,6 +48,7 @@ email:
use_ssl: false
timeout: 10
from: authentik@localhost
template_dir: /templates
outposts:
# Placeholders:

View File

@ -230,7 +230,7 @@ ROOT_URLCONF = "authentik.root.urls"
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": ["/templates"],
"DIRS": [CONFIG.y("email.template_dir")],
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [