From 781d329b672819b3cd6720be4cdc170efe0f018d Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Wed, 1 Mar 2023 17:35:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BA=94=E7=94=A8=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=A7=84=E5=88=99=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/dataease/versions/1.18.2/config.json | 17 +++++++++++--- .../versions/2.8.1/config.json | 1 + apps/gitlab/versions/15.8.3/config.json | 3 +++ apps/halo/versions/2.2.0/config.json | 22 ++++++++++++++----- apps/halo/versions/2.3.0/config.json | 20 +++++++++++++---- apps/jenkins/versions/2.391/config.json | 1 + apps/mariadb/versions/10.9.5/config.json | 5 ++++- .../RELEASE.2022-08-13T21-54-44Z/config.json | 10 +++++++-- apps/mongodb/versions/6.0.4/config.json | 9 ++++++-- apps/mysql/versions/5.7.39/config.json | 5 ++++- apps/mysql/versions/8.0.30/config.json | 5 ++++- apps/nexus/versions/3.47.1/config.json | 1 + apps/phpmyadmin/versions/5.2.0/config.json | 1 + .../versions/15.2-alpine/config.json | 9 ++++++-- .../versions/0.8.0/config.json | 3 ++- apps/redis/versions/6.0.16/config.json | 5 ++++- apps/redis/versions/7.0.5/config.json | 5 ++++- apps/wordpress/versions/6.0.1/config.json | 13 ++++++++--- apps/wordpress/versions/6.0.2/config.json | 13 ++++++++--- 19 files changed, 118 insertions(+), 30 deletions(-) diff --git a/apps/dataease/versions/1.18.2/config.json b/apps/dataease/versions/1.18.2/config.json index ef327e5f..7124d39a 100644 --- a/apps/dataease/versions/1.18.2/config.json +++ b/apps/dataease/versions/1.18.2/config.json @@ -14,7 +14,9 @@ "labelZh": "数据库名", "labelEn": "Database", "required": true, - "default": "random", + "default": "de", + "random": true, + "rule": "paramCommon", "envKey": "PANEL_DB_NAME" }, { @@ -22,7 +24,9 @@ "labelZh": "数据库用户", "labelEn": "User", "required": true, - "default": "random", + "default": "de", + "random": true, + "rule": "paramCommon", "envKey": "PANEL_DB_USER" }, { @@ -30,7 +34,9 @@ "labelZh": "数据库用户密码", "labelEn": "Password", "required": true, - "default": "random", + "default": "de", + "random": true, + "rule": "paramComplexity", "envKey": "PANEL_DB_USER_PASSWORD" }, { @@ -39,6 +45,8 @@ "labelEn": "Admin Password", "required": true, "default": "admin", + "random": true, + "rule": "paramCommon", "envKey": "DE_ADMIN", "disabled": true }, @@ -48,6 +56,8 @@ "labelEn": "Admin Password", "required": true, "default": "dataease", + "random": true, + "rule": "paramComplexity", "envKey": "DE_ADMIN_PASSWORD", "disabled": true }, @@ -57,6 +67,7 @@ "labelEn": "Port", "required": true, "default": 8080, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTP" } ] diff --git a/apps/docker-registry/versions/2.8.1/config.json b/apps/docker-registry/versions/2.8.1/config.json index 6dc00080..998e8724 100644 --- a/apps/docker-registry/versions/2.8.1/config.json +++ b/apps/docker-registry/versions/2.8.1/config.json @@ -6,6 +6,7 @@ "labelEn": "Port", "required": true, "default": 5000, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTP" } ] diff --git a/apps/gitlab/versions/15.8.3/config.json b/apps/gitlab/versions/15.8.3/config.json index 3b912a9a..3a53c7e3 100644 --- a/apps/gitlab/versions/15.8.3/config.json +++ b/apps/gitlab/versions/15.8.3/config.json @@ -16,6 +16,7 @@ "labelEn": "HTTP Port", "required": true, "default": 8090, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTP" }, { @@ -24,6 +25,7 @@ "labelEn": "HTTPS Port", "required": true, "default": 8443, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTPS" }, { @@ -32,6 +34,7 @@ "labelEn": "SSH Port", "required": true, "default": 2229, + "rule": "paramPort", "envKey": "JENKINS_SSH_PORT" } ] diff --git a/apps/halo/versions/2.2.0/config.json b/apps/halo/versions/2.2.0/config.json index e124def1..ef216d43 100644 --- a/apps/halo/versions/2.2.0/config.json +++ b/apps/halo/versions/2.2.0/config.json @@ -14,7 +14,9 @@ "labelZh": "数据库名", "labelEn": "Database", "required": true, - "default": "random", + "default": "halo", + "random": true, + "rule": "paramCommon", "envKey": "PANEL_DB_NAME" }, { @@ -22,7 +24,9 @@ "labelZh": "数据库用户", "labelEn": "User", "required": true, - "default": "random", + "default": "halo", + "random": true, + "rule": "paramCommon", "envKey": "PANEL_DB_USER" }, { @@ -30,7 +34,9 @@ "labelZh": "数据库用户密码", "labelEn": "Password", "required": true, - "default": "random", + "default": "halo", + "random": true, + "rule": "paramComplexity", "envKey": "PANEL_DB_USER_PASSWORD" }, { @@ -38,7 +44,9 @@ "labelZh": "超级管理员用户名", "labelEn": "Admin Username", "required": true, - "default": "admin", + "default": "halo", + "random": true, + "rule": "paramCommon", "envKey": "HALO_ADMIN" }, { @@ -46,7 +54,9 @@ "labelZh": "超级管理员密码", "labelEn": "Admin Password", "required": true, - "default": "random", + "default": "halo", + "random": true, + "rule": "paramComplexity", "envKey": "HALO_ADMIN_PASSWORD" }, { @@ -55,6 +65,7 @@ "labelEn": "External URL", "required": true, "default": "http://localhost:8080", + "rule": "paramExtUrl", "envKey": "HALO_EXTERNAL_URL" }, { @@ -63,6 +74,7 @@ "labelEn": "Port", "required": true, "default": 8080, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTP" } ] diff --git a/apps/halo/versions/2.3.0/config.json b/apps/halo/versions/2.3.0/config.json index e124def1..c4870e42 100644 --- a/apps/halo/versions/2.3.0/config.json +++ b/apps/halo/versions/2.3.0/config.json @@ -14,7 +14,9 @@ "labelZh": "数据库名", "labelEn": "Database", "required": true, - "default": "random", + "default": "halo", + "random": true, + "rule": "paramCommon", "envKey": "PANEL_DB_NAME" }, { @@ -22,7 +24,9 @@ "labelZh": "数据库用户", "labelEn": "User", "required": true, - "default": "random", + "default": "halo", + "random": true, + "rule": "paramCommon", "envKey": "PANEL_DB_USER" }, { @@ -30,7 +34,9 @@ "labelZh": "数据库用户密码", "labelEn": "Password", "required": true, - "default": "random", + "default": "halo", + "random": true, + "rule": "paramComplexity", "envKey": "PANEL_DB_USER_PASSWORD" }, { @@ -39,6 +45,8 @@ "labelEn": "Admin Username", "required": true, "default": "admin", + "random": true, + "rule": "paramCommon", "envKey": "HALO_ADMIN" }, { @@ -46,7 +54,9 @@ "labelZh": "超级管理员密码", "labelEn": "Admin Password", "required": true, - "default": "random", + "default": "halo", + "random": true, + "rule": "paramComplexity", "envKey": "HALO_ADMIN_PASSWORD" }, { @@ -55,6 +65,7 @@ "labelEn": "External URL", "required": true, "default": "http://localhost:8080", + "rule": "paramExtUrl", "envKey": "HALO_EXTERNAL_URL" }, { @@ -63,6 +74,7 @@ "labelEn": "Port", "required": true, "default": 8080, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTP" } ] diff --git a/apps/jenkins/versions/2.391/config.json b/apps/jenkins/versions/2.391/config.json index a298d602..7dd09947 100644 --- a/apps/jenkins/versions/2.391/config.json +++ b/apps/jenkins/versions/2.391/config.json @@ -6,6 +6,7 @@ "labelEn": "Port", "required": true, "default": 8080, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTP" } ] diff --git a/apps/mariadb/versions/10.9.5/config.json b/apps/mariadb/versions/10.9.5/config.json index 3a420e71..a6e19482 100644 --- a/apps/mariadb/versions/10.9.5/config.json +++ b/apps/mariadb/versions/10.9.5/config.json @@ -5,7 +5,9 @@ "labelZh": "root用户密码", "labelEn": "Root Password", "required": true, - "default": "random", + "default": "mariadb", + "random": true, + "rule": "paramComplexity", "envKey": "PANEL_DB_ROOT_PASSWORD" }, { @@ -14,6 +16,7 @@ "labelEn": "Port", "required": true, "default": 3306, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTP" } ] diff --git a/apps/minio/versions/RELEASE.2022-08-13T21-54-44Z/config.json b/apps/minio/versions/RELEASE.2022-08-13T21-54-44Z/config.json index be09e7ed..cff32219 100644 --- a/apps/minio/versions/RELEASE.2022-08-13T21-54-44Z/config.json +++ b/apps/minio/versions/RELEASE.2022-08-13T21-54-44Z/config.json @@ -5,7 +5,9 @@ "labelZh": "用户", "labelEn": "User", "required": true, - "default": "random", + "default": "minio", + "random": true, + "rule": "paramCommon", "envKey": "MINIO_ROOT_USER" }, { @@ -13,7 +15,9 @@ "labelZh": "密码", "labelEn": "Password", "required": true, - "default": "random", + "default": "minio", + "random": true, + "rule": "paramComplexity", "envKey": "MINIO_ROOT_PASSWORD" }, { @@ -22,6 +26,7 @@ "labelEn": "Port", "required": true, "default": 9000, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTP" }, { @@ -30,6 +35,7 @@ "labelEn": "Port", "required": true, "default": 9001, + "rule": "paramPort", "envKey": "PORT_API" } ] diff --git a/apps/mongodb/versions/6.0.4/config.json b/apps/mongodb/versions/6.0.4/config.json index 63e61ef7..0cfdd548 100644 --- a/apps/mongodb/versions/6.0.4/config.json +++ b/apps/mongodb/versions/6.0.4/config.json @@ -5,7 +5,9 @@ "labelZh": "Root 用户名", "labelEn": "Root Username", "required": true, - "default": "random", + "default": "mongo", + "random": true, + "rule": "paramCommon", "envKey": "PANEL_DB_ROOT_USER" }, { @@ -13,7 +15,9 @@ "labelZh": "Root 用户密码", "labelEn": "Root Password", "required": true, - "default": "random", + "default": "mongo", + "random": true, + "rule": "paramComplexity", "envKey": "PANEL_DB_ROOT_PASSWORD" }, { @@ -22,6 +26,7 @@ "labelEn": "Port", "required": true, "default": 27017, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTP" } ] diff --git a/apps/mysql/versions/5.7.39/config.json b/apps/mysql/versions/5.7.39/config.json index 1af8edbb..110fd2d9 100644 --- a/apps/mysql/versions/5.7.39/config.json +++ b/apps/mysql/versions/5.7.39/config.json @@ -5,7 +5,9 @@ "labelZh": "root用户密码", "labelEn": "RootPassword", "required": true, - "default": "random", + "default": "mysql", + "random": true, + "rule": "paramComplexity", "envKey": "PANEL_DB_ROOT_PASSWORD" }, { @@ -14,6 +16,7 @@ "labelEn": "Port", "required": true, "default": 3306, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTP" } ] diff --git a/apps/mysql/versions/8.0.30/config.json b/apps/mysql/versions/8.0.30/config.json index 3a420e71..511b7714 100644 --- a/apps/mysql/versions/8.0.30/config.json +++ b/apps/mysql/versions/8.0.30/config.json @@ -5,7 +5,9 @@ "labelZh": "root用户密码", "labelEn": "Root Password", "required": true, - "default": "random", + "default": "mysql", + "random": true, + "rule": "paramCommon", "envKey": "PANEL_DB_ROOT_PASSWORD" }, { @@ -14,6 +16,7 @@ "labelEn": "Port", "required": true, "default": 3306, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTP" } ] diff --git a/apps/nexus/versions/3.47.1/config.json b/apps/nexus/versions/3.47.1/config.json index f427c7f7..dcf82c9a 100644 --- a/apps/nexus/versions/3.47.1/config.json +++ b/apps/nexus/versions/3.47.1/config.json @@ -6,6 +6,7 @@ "labelEn": "Port", "required": true, "default": 8081, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTP" } ] diff --git a/apps/phpmyadmin/versions/5.2.0/config.json b/apps/phpmyadmin/versions/5.2.0/config.json index 42e5ed55..7ee8f084 100644 --- a/apps/phpmyadmin/versions/5.2.0/config.json +++ b/apps/phpmyadmin/versions/5.2.0/config.json @@ -15,6 +15,7 @@ "labelEn": "Port", "required": true, "default": 8089, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTP" } ] diff --git a/apps/postgresql/versions/15.2-alpine/config.json b/apps/postgresql/versions/15.2-alpine/config.json index b3d40c0e..919866c8 100644 --- a/apps/postgresql/versions/15.2-alpine/config.json +++ b/apps/postgresql/versions/15.2-alpine/config.json @@ -5,7 +5,9 @@ "labelZh": "用户名", "labelEn": "Username", "required": true, - "default": "random", + "default": "pg", + "random": true, + "rule": "paramCommon", "envKey": "PANEL_DB_ROOT_USER" }, { @@ -13,7 +15,9 @@ "labelZh": "用户密码", "labelEn": "Password", "required": true, - "default": "random", + "default": "pg", + "random": true, + "rule": "paramComplexity", "envKey": "PANEL_DB_ROOT_PASSWORD" }, { @@ -22,6 +26,7 @@ "labelEn": "Port", "required": true, "default": 5432, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTP" } ] diff --git a/apps/redis-commander/versions/0.8.0/config.json b/apps/redis-commander/versions/0.8.0/config.json index 5f1ff8d3..86e844cf 100644 --- a/apps/redis-commander/versions/0.8.0/config.json +++ b/apps/redis-commander/versions/0.8.0/config.json @@ -14,7 +14,7 @@ "labelZh": "Redis 密码", "labelEn": "Redis Password", "required": true, - "default": "eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81", + "default": "", "envKey": "PANEL_DB_ROOT_PASSWORD" }, { @@ -23,6 +23,7 @@ "labelEn": "Port", "required": true, "default": 8089, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTP" } ] diff --git a/apps/redis/versions/6.0.16/config.json b/apps/redis/versions/6.0.16/config.json index f39c2369..bf5f91c9 100644 --- a/apps/redis/versions/6.0.16/config.json +++ b/apps/redis/versions/6.0.16/config.json @@ -5,7 +5,9 @@ "labelZh": "密码", "labelEn": "Password", "required": true, - "default": "random", + "default": "jhkdjhkjdhsIUTYURTUYGHJGFFJ", + "random": true, + "rule": "paramComplexity", "envKey": "PANEL_DB_ROOT_PASSWORD" }, { @@ -14,6 +16,7 @@ "labelEn": "Port", "required": true, "default": 6379, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTP" } ] diff --git a/apps/redis/versions/7.0.5/config.json b/apps/redis/versions/7.0.5/config.json index f39c2369..bf5f91c9 100644 --- a/apps/redis/versions/7.0.5/config.json +++ b/apps/redis/versions/7.0.5/config.json @@ -5,7 +5,9 @@ "labelZh": "密码", "labelEn": "Password", "required": true, - "default": "random", + "default": "jhkdjhkjdhsIUTYURTUYGHJGFFJ", + "random": true, + "rule": "paramComplexity", "envKey": "PANEL_DB_ROOT_PASSWORD" }, { @@ -14,6 +16,7 @@ "labelEn": "Port", "required": true, "default": 6379, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTP" } ] diff --git a/apps/wordpress/versions/6.0.1/config.json b/apps/wordpress/versions/6.0.1/config.json index 3b80651c..46a2ccf1 100644 --- a/apps/wordpress/versions/6.0.1/config.json +++ b/apps/wordpress/versions/6.0.1/config.json @@ -14,7 +14,9 @@ "labelZh": "数据库名", "labelEn": "Database", "required": true, - "default": "random", + "default": "word", + "random": true, + "rule": "paramCommon", "envKey": "PANEL_DB_NAME" }, { @@ -22,7 +24,9 @@ "labelZh": "数据库用户", "labelEn": "User", "required": true, - "default": "random", + "default": "word", + "random": true, + "rule": "paramCommon", "envKey": "PANEL_DB_USER" }, { @@ -30,7 +34,9 @@ "labelZh": "数据库用户密码", "labelEn": "Password", "required": true, - "default": "random", + "default": "word", + "random": true, + "rule": "paramComplexity", "envKey": "PANEL_DB_USER_PASSWORD" }, { @@ -39,6 +45,7 @@ "labelEn": "Port", "required": true, "default": 8080, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTP" } ] diff --git a/apps/wordpress/versions/6.0.2/config.json b/apps/wordpress/versions/6.0.2/config.json index 3b80651c..46a2ccf1 100644 --- a/apps/wordpress/versions/6.0.2/config.json +++ b/apps/wordpress/versions/6.0.2/config.json @@ -14,7 +14,9 @@ "labelZh": "数据库名", "labelEn": "Database", "required": true, - "default": "random", + "default": "word", + "random": true, + "rule": "paramCommon", "envKey": "PANEL_DB_NAME" }, { @@ -22,7 +24,9 @@ "labelZh": "数据库用户", "labelEn": "User", "required": true, - "default": "random", + "default": "word", + "random": true, + "rule": "paramCommon", "envKey": "PANEL_DB_USER" }, { @@ -30,7 +34,9 @@ "labelZh": "数据库用户密码", "labelEn": "Password", "required": true, - "default": "random", + "default": "word", + "random": true, + "rule": "paramComplexity", "envKey": "PANEL_DB_USER_PASSWORD" }, { @@ -39,6 +45,7 @@ "labelEn": "Port", "required": true, "default": 8080, + "rule": "paramPort", "envKey": "PANEL_APP_PORT_HTTP" } ]