Skip to content

Commit

Permalink
Merge pull request #7 from NethServer/dev6853
Browse files Browse the repository at this point in the history
Update hostname format and error handling NethServer/dev#6853
  • Loading branch information
stephdl authored Feb 22, 2024
2 parents 98df82f + d1df832 commit 7178d09
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 4 additions & 2 deletions imageroot/actions/configure-module/validate-input.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@
"host_console": {
"type": "string",
"description": "Host name for the server, this host will be use by S3 clients",
"format": "idn-hostname"
"format": "hostname",
"pattern": "\\."
},
"host_server": {
"type": "string",
"description": "Host name for the UI, this how will serve the management UI",
"format": "idn-hostname"
"format": "hostname",
"pattern": "\\."
},
"lets_encrypt": {
"type": "boolean",
Expand Down
6 changes: 5 additions & 1 deletion ui/public/i18n/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
"enabled": "Enabled",
"different": "API and web interface hosts must be different",
"storage_path": "Storage path",
"storage_path_helper": "MinIO stores data in 'minio-data' by default. To use an external disk instead, enter a full path like '/mnt/data', make sure this location already exists and is a properly formatted and mounted disk. But remember, changing the storage path means it won't be part of the backup."
"storage_path_helper": "MinIO stores data in 'minio-data' by default. To use an external disk instead, enter a full path like '/mnt/data', make sure this location already exists and is a properly formatted and mounted disk. But remember, changing the storage path means it won't be part of the backup.",
"host_server_pattern": "Must be a valid fully qualified domain name",
"host_server_format": "Must be a valid fully qualified domain name",
"host_console_pattern": "Must be a valid fully qualified domain name",
"host_console_format": "Must be a valid fully qualified domain name"
},
"about": {
"title": "About"
Expand Down
4 changes: 2 additions & 2 deletions ui/src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
v-model="host_server"
placeholder="minio.mydomain.org"
:disabled="loading.getConfiguration || loading.configureModule"
:invalid-message="error.host_server"
:invalid-message="$t(error.host_server)"
ref="host_server"
></cv-text-input>
<cv-text-input
:label="$t('settings.host_console')"
v-model="host_console"
placeholder="console.minio.mydomain.org"
:disabled="loading.getConfiguration || loading.configureModule"
:invalid-message="error.host_console"
:invalid-message="$t(error.host_console)"
ref="host_console"
></cv-text-input>
<cv-toggle
Expand Down

0 comments on commit 7178d09

Please sign in to comment.