root: save email template directory in config
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
0c48b40848
commit
cd1a36fec4
|
@ -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:
|
||||||
|
|
|
@ -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": [
|
||||||
|
|
Reference in a new issue