Bläddra i källkod

feat: update access key tips

weiyichao 2 år sedan
förälder
incheckning
74225fd42f

+ 4 - 4
apollo-portal/src/main/resources/static/i18n/en.json

@@ -484,10 +484,10 @@
   "ServiceConfig.KeyExistsAndSaveTip": "Key: '{{key}}' already exists. Click Save will override the configuration item.",
   "AccessKey.Tips.1": "Add up to 5 access keys per environment.",
   "AccessKey.Tips.2": "Once the environment has any enabled access key, the client will be required to configure access key, or the configurations cannot be obtained.",
-  "AccessKey.Tips.3": "Configure the access key to prevent unauthorized clients from obtaining the application configuration. The configuration method is as follows(requires apollo-client version 1.6.0+):",
-  "AccessKey.Tips.3.1": "Via jvm parameter -Dapollo.access-key.secret",
-  "AccessKey.Tips.3.2": "Through the os environment variable APOLLO_ACCESS_KEY_SECRET",
-  "AccessKey.Tips.3.3": "Configure apollo.access-key.secret via META-INF/app.properties or application.properties (note that the multi-environment secret is different)",
+  "AccessKey.Tips.3": "Configure the access key to prevent unauthorized clients from obtaining the application configuration. The configuration method is as follows(only apollo-client version 1.6.0+):",
+  "AccessKey.Tips.3.1": "Via jvm parameter: apollo-client version >=1.9.0 is recommended to use -Dapollo.access-key.secret; other versions use -Dapollo.accesskey.secret",
+  "AccessKey.Tips.3.2": "Through the os environment variable: apollo-client version >=1.9.0 is recommended to use APOLLO_ACCESS_KEY_SECRET; other versions use APOLLO_ACCESSKEY_SECRET",
+  "AccessKey.Tips.3.3": "Via META-INF/app.properties or application.properties: apollo-client version >=1.9.0 is recommended to use apollo.access-key.secret; other versions use apollo.accesskey.secret(note that the multi-environment secret is different)",
   "AccessKey.NoAccessKeyServiceTips": "There are no access keys in this environment.",
   "AccessKey.ConfigAccessKeys.Secret": "Access Key Secret",
   "AccessKey.ConfigAccessKeys.Status": "Status",

+ 4 - 4
apollo-portal/src/main/resources/static/i18n/zh-CN.json

@@ -484,10 +484,10 @@
   "ServiceConfig.KeyExistsAndSaveTip": "Key: '{{key}}' 已存在,点击保存后会覆盖该配置项",
   "AccessKey.Tips.1": "每个环境最多可添加 5 个访问密钥",
   "AccessKey.Tips.2": "一旦该环境有启用的访问密钥,客户端将被要求配置密钥,否则无法获取配置",
-  "AccessKey.Tips.3": "配置访问密钥防止非法客户端获取该应用配置,配置方式如下(需要 apollo-client 1.6.0+ 版本):",
-  "AccessKey.Tips.3.1": "通过 jvm 参数 -Dapollo.access-key.secret",
-  "AccessKey.Tips.3.2": "通过操作系统环境变量 APOLLO_ACCESS_KEY_SECRET",
-  "AccessKey.Tips.3.3": "通过 META-INF/app.properties 或 application.properties 配置 apollo.access-key.secret(注意多环境 secret 不一样)",
+  "AccessKey.Tips.3": "配置访问密钥防止非法客户端获取该应用配置,配置方式如下:(仅支持apollo-client 1.6.0+)",
+  "AccessKey.Tips.3.1": "通过JVM参数配置: apollo-client >=1.9.0 推荐使用 -Dapollo.access-key.secret; 其它版本使用 -Dapollo.accesskey.secret",
+  "AccessKey.Tips.3.2": "通过操作系统环境变量配置: apollo-client >=1.9.0 推荐使用 APOLLO_ACCESS_KEY_SECRET; 其它版本使用 APOLLO_ACCESSKEY_SECRET",
+  "AccessKey.Tips.3.3": "通过 META-INF/app.properties 或 application.properties配置: apollo-client >=1.9.0 推荐使用 apollo.access-key.secret; 其它版本使用 apollo.accesskey.secret(注意多环境 secret 不一样)",
   "AccessKey.NoAccessKeyServiceTips": "该环境没有配置访问密钥",
   "AccessKey.ConfigAccessKeys.Secret": "访问密钥",
   "AccessKey.ConfigAccessKeys.Status": "状态",