From bf14603381cb3647f26d7b6c45539bc1039e6001 Mon Sep 17 00:00:00 2001 From: Adrien P Date: Fri, 18 Jul 2025 10:07:21 +0200 Subject: [PATCH] allowed_host should be a list --- modoboa/core/management/commands/load_initial_data.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modoboa/core/management/commands/load_initial_data.py b/modoboa/core/management/commands/load_initial_data.py index 1aeb55b2a..be4e73a82 100644 --- a/modoboa/core/management/commands/load_initial_data.py +++ b/modoboa/core/management/commands/load_initial_data.py @@ -110,6 +110,7 @@ class Command(BaseCommand): allowed_host = input("What will be the hostname used to access Modoboa? ") if not allowed_host: allowed_host = "localhost" + allowed_host = [allowed_host] frontend_application = app_model.objects.filter(name="modoboa_frontend") # TODO : improve support for multiple allowed_host for frontend base_uris_list = [f"https://{host}" for host in allowed_host]