From 59bd4ca8eb58a6a58bb4a5c6b158e9278b98bd8f Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 8 Aug 2025 08:39:09 +0200 Subject: [PATCH] Added handling of multiple domains and used get_url function in mailu --- roles/web-app-mailu/templates/env.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/web-app-mailu/templates/env.j2 b/roles/web-app-mailu/templates/env.j2 index 079c9b1b..3a8b6f60 100644 --- a/roles/web-app-mailu/templates/env.j2 +++ b/roles/web-app-mailu/templates/env.j2 @@ -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) }}