From aa6be989e8a905db7108cffa33ecc47abb9d887d Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Wed, 21 Feb 2024 12:37:26 +0100 Subject: [PATCH 1/2] Update hostname format in validate-input.json --- imageroot/actions/configure-module/validate-input.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imageroot/actions/configure-module/validate-input.json b/imageroot/actions/configure-module/validate-input.json index 869c37a..af71c10 100644 --- a/imageroot/actions/configure-module/validate-input.json +++ b/imageroot/actions/configure-module/validate-input.json @@ -42,7 +42,8 @@ "hostname": { "type": "string", "description": "Host name for the application, like 'ejabberd.org'", - "format": "idn-hostname" + "format": "hostname", + "pattern": "\\." }, "lets_encrypt": { "type": "boolean", From dafce7c5aff63f42ded90dce54739028d01df71a Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Wed, 21 Feb 2024 12:37:33 +0100 Subject: [PATCH 2/2] Add hostname validation messages to translation.json --- ui/public/i18n/en/translation.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/public/i18n/en/translation.json b/ui/public/i18n/en/translation.json index 57b82f3..04ac5c3 100644 --- a/ui/public/i18n/en/translation.json +++ b/ui/public/i18n/en/translation.json @@ -53,7 +53,9 @@ "save": "Save", "specify_duration": "Specify duration", "days": "Days", - "never": "Never clean" + "never": "Never clean", + "hostname_pattern": "Must be a valid fully qualified domain name", + "hostname_format": "Must be a valid fully qualified domain name" }, "about": { "title": "About"