Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update hostname format and add validation messages for host pattern and format #17

Merged
merged 2 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion imageroot/actions/configure-module/validate-input.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"host": {
"type": "string",
"description": "Host name for the application, like 'collabora.nethserver.org'",
"format": "idn-hostname"
"format": "hostname",
"pattern": "\\."
},
"lets_encrypt": {
"type": "boolean",
Expand Down
4 changes: 3 additions & 1 deletion ui/public/i18n/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
"link": "Admin console",
"admin_password_string_gte": "The password length must be superior or equal to 8 characters",
"placeholder_admin_password": "Type a password",
"placeholder_collabora_domain": "Type a fully qualified domain name"
"placeholder_collabora_domain": "Type a fully qualified domain name",
"host_pattern": "Must be a valid fully qualified domain name",
"host_format": "Must be a valid fully qualified domain name"
},
"about": {
"title": "About"
Expand Down
Loading