瀏覽代碼

chore: update docs

Jacky 9 月之前
父節點
當前提交
46e78f4405

+ 2 - 1
docs/.vitepress/config/en.ts

@@ -40,7 +40,8 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
             {text: 'Casdoor', link: '/guide/config-casdoor'},
             {text: 'Logrotate', link: '/guide/config-logrotate'},
             {text: 'Cluster', link: '/guide/config-cluster'},
-            {text: 'Auth', link: '/guide/config-auth'}
+            {text: 'Auth', link: '/guide/config-auth'},
+            {text: 'Crypto', link: '/guide/config-crypto'}
           ]
         },
         {

+ 2 - 1
docs/.vitepress/config/zh_CN.ts

@@ -45,7 +45,8 @@ export const zhCNConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
             {text: 'Casdoor', link: '/zh_CN/guide/config-casdoor'},
             {text: 'Logrotate', link: '/zh_CN/guide/config-logrotate'},
             {text: '集群', link: '/zh_CN/guide/config-cluster'},
-            {text: '认证', link: '/zh_CN/guide/config-auth'}
+            {text: '认证', link: '/zh_CN/guide/config-auth'},
+            {text: '加密', link: '/zh_CN/guide/config-crypto'}
           ]
         },
         {

+ 2 - 1
docs/.vitepress/config/zh_TW.ts

@@ -44,7 +44,8 @@ export const zhTWConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
             {text: 'Casdoor', link: '/zh_TW/guide/config-casdoor'},
             {text: 'Logrotate', link: '/zh_TW/guide/config-logrotate'},
             {text: '集群', link: '/zh_TW/guide/config-cluster'},
-            {text: '認證', link: '/zh_TM/guide/config-auth'}
+            {text: '認證', link: '/zh_TW/guide/config-auth'},
+            {text: '加密', link: '/zh_TW/guide/config-crypto'}
           ]
         },
         {

+ 7 - 0
docs/guide/config-crypto.md

@@ -0,0 +1,7 @@
+# Crypto
+
+## Secret
+- Type: `string`
+
+If this value is empty, Nginx UI will generate a random secret key automatically.
+This secret is used to encrypt the sensitive data stored in the database.

+ 3 - 0
docs/index.md

@@ -51,6 +51,9 @@ features:
     -   icon: 📱
         title: Responsive Web Design
         details: Enjoy a seamless experience on any device with responsive web design.
+    -   icon: 🔐
+        title: 2FA Authentication
+        details: Secure sensitive actions with two-factor authentication.
 
 ---
 

+ 6 - 0
docs/zh_CN/guide/config-crypto.md

@@ -0,0 +1,6 @@
+# Crypto
+
+## Secret
+- Type: `string`
+
+如果这个值为空,Nginx UI 将会自动生成一个随机的密钥。这个密钥用于加密存储在数据库中的敏感数据。

+ 3 - 1
docs/zh_CN/index.md

@@ -51,6 +51,8 @@ features:
     -   icon: 📱
         title: 自适应网页设计
         details: 通过自适应网页设计在任何设备上享受无缝体验。
-
+    -   icon: 🔐
+        title: 双因素认证
+        details: 使用双因素认证保护敏感操作。
 ---
 

+ 6 - 0
docs/zh_TW/guide/config-crypto.md

@@ -0,0 +1,6 @@
+# Crypto
+
+## Secret
+- Type: `string`
+
+如果這個值為空,Nginx UI 將會自動生成一個隨機的密鑰。這個密鑰用於加密存儲在數據庫中的敏感數據。

+ 3 - 1
docs/zh_TW/index.md

@@ -51,6 +51,8 @@ features:
     -   icon: 📱
         title: 自適應網頁設計
         details: 透過自適應網頁設計在任何裝置上享受無縫體驗。
-
+    -   icon: 🔐
+        title: 雙因素認證
+        details: 使用雙因素認證保護敏感操作。
 ---