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 use_ssl: false
timeout: 10 timeout: 10
from: authentik@localhost from: authentik@localhost
template_dir: /templates
outposts: outposts:
# Placeholders: # Placeholders:

View File

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