Moved email host and domain SPOT to SYSTEM_EMAIL constant

This commit is contained in:
Kevin Veen-Birkenbach 2025-08-19 10:00:35 +02:00
parent f46aabe884
commit 242347878d
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
2 changed files with 7 additions and 5 deletions

View File

@ -189,7 +189,7 @@ def parse_args():
def main():
args = parse_args()
primary_domain = '{{ PRIMARY_DOMAIN }}'
primary_domain = '{{ SYSTEM_EMAIL.DOMAIN }}'
become_pwd = '{{ lookup("password", "/dev/null length=42 chars=ascii_letters,digits") }}'
try:

View File

@ -1,7 +1,7 @@
oidc:
email_by_username: true # If true, then the mail is set by the username. If wrong then the OIDC user email is used
enable_user_creation: true # Users will be created if not existing
domain: "{{ PRIMARY_DOMAIN }}" # The main domain from which mails will be send \ email suffix behind @
domain: "{{ SYSTEM_EMAIL.DOMAIN }}" # The main domain from which mails will be send \ email suffix behind @
features:
matomo: true
css: false
@ -12,7 +12,9 @@ features:
server:
domains:
canonical:
- "mail.{{ PRIMARY_DOMAIN }}"
- "{{ SYSTEM_EMAIL.HOST }}"
alias:
- "mailu.{{ PRIMARY_DOMAIN }}"
csp:
flags:
style-src: