Skip to content
This repository was archived by the owner on Nov 2, 2024. It is now read-only.

Commit a0f7731

Browse files
authored
docs: update secret settings (#52)
* update Signed-off-by: 浮心物语 <[email protected]> * Update docker.mdx Signed-off-by: 浮心物语 <[email protected]> --------- Signed-off-by: 浮心物语 <[email protected]>
1 parent ed03bca commit a0f7731

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pages/docs/docker.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ import { EnvVariableConfig } from '@components/EnvVariableConfig'
7171
- **`加密密钥`**:如果你不知道这是什么,那么不建议开启此功能,具体内容可参考 https://mx-space.js.org/usage/security.html
7272

7373
<Callout type="warning">
74-
若开启加密,则需注意密钥长度**必须为 64 **,不然会在初始化时报错。注意这是**不可逆**的,务必保存自己的秘钥。所以并不是非常推荐使用,除非你真的需要加密
74+
若开启加密,则需注意密钥长度**必须为 64 位且只有小写字母和数字**,不然会在初始化时报错。注意这是**不可逆**的,务必保存自己的秘钥。所以并不是非常推荐使用,除非你真的需要加密
7575
API Key.
7676

7777
密钥可以通过 `openssl rand -hex 32` 命令生成。请务必牢记。

pages/usage/security.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ import { Callout } from 'nextra/components'
1818
node index.js --encrypt_enable
1919
```
2020

21-
可以通过附加 `--encrypt_key <key>` 来指定加密密钥,长度必须为 64 位。请牢记此密钥。或者通过环境变量 `MX_ENCRYPT_KEY` 也可以指定密钥。
21+
可以通过附加 `--encrypt_key <key>` 来指定加密密钥,长度必须为 64 位,且只有小写字母和数字。请牢记此密钥。或者通过环境变量 `MX_ENCRYPT_KEY` 也可以指定密钥。
2222

2323
<Callout type="warning">
24-
若开启加密,则需注意密钥长度**必须为 64 **,不然会在初始化时报错。注意这是**不可逆**的,务必保存自己的秘钥。
24+
若开启加密,则需注意密钥长度**必须为 64 位且只有小写字母和数字**,不然会在初始化时报错。注意这是**不可逆**的,务必保存自己的秘钥。
2525
API Key.
2626

2727
</Callout>

0 commit comments

Comments
 (0)