Added handling of multiple domains and used get_url function in mailu

This commit is contained in:
2025-08-08 08:39:09 +02:00
parent da58691d25
commit 59bd4ca8eb

View File

@@ -20,7 +20,7 @@ SUBNET={{networks.local['web-app-mailu'].subnet}}
DOMAIN={{ applications | get_app_conf(application_id,'domain') }}
# Hostnames for this server, separated with comas
HOSTNAMES={{domains | get_domain(application_id)}}
HOSTNAMES={{ domains[application_id] | join(',') }}
# Postmaster local part (will append the main mail domain)
POSTMASTER=admin
@@ -105,7 +105,7 @@ WEB_WEBMAIL=/webmail
SITENAME=Mailservices
# Linked Website URL
WEBSITE=https://{{domains | get_domain(application_id)}}
WEBSITE={{ domains | get_url(application_id, WEB_PROTOCOL) }}