From ddfa0f47bfdb74dd25483c3d1c1555a9bcd59d1b Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Tue, 19 May 2020 14:19:23 +0200 Subject: [PATCH] Add new config variable and rename opaque_domain -> nopaque_domain --- app/templates/nopaque.html.j2 | 6 +++++- config.py | 1 + nopaque.env.tpl | 5 ++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/templates/nopaque.html.j2 b/app/templates/nopaque.html.j2 index 89daabc5..8afd28c4 100644 --- a/app/templates/nopaque.html.j2 +++ b/app/templates/nopaque.html.j2 @@ -185,7 +185,11 @@ diff --git a/config.py b/config.py index 56864cec..3a93dbc1 100644 --- a/config.py +++ b/config.py @@ -19,6 +19,7 @@ class Config: ''' ### nopaque ### ''' NOPAQUE_ADMIN = os.environ.get('NOPAQUE_ADMIN') + NOPAQUE_CONTACT = os.environ.get('NOPAQUE_CONTACT') NOPAQUE_MAIL_SENDER = os.environ.get('NOPAQUE_MAIL_SENDER') NOPAQUE_MAIL_SUBJECT_PREFIX = '[nopaque]' NOPAQUE_STORAGE = os.environ.get('NOPAQUE_STORAGE') diff --git a/nopaque.env.tpl b/nopaque.env.tpl index e7efeb1f..bfbe2a85 100644 --- a/nopaque.env.tpl +++ b/nopaque.env.tpl @@ -23,10 +23,9 @@ MAIL_USE_TLS= MAIL_USERNAME= MAIL_PASSWORD= -### Opaque Notifications ### -OPAQUE_DOMAIN= - ### nopaque ### NOPAQUE_ADMIN= +NOPAQUE_CONTACT= +OPAQUE_DOMAIN= NOPAQUE_MAIL_SENDER= NOPAQUE_STORAGE=