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

Commit b3b2966

Browse files
committed
update
Signed-off-by: Innei <[email protected]>
1 parent ef1478e commit b3b2966

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

pages/usage/security.mdx

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# 信息加密与安全性
22

3+
import { Callout } from 'nextra/components'
4+
35
在 v3.41.0 后续版本,加入了敏感信息加密功能。默认为关。
46

57
为什么需要信息加密。
@@ -26,19 +28,22 @@ node index.js --encrypt_enable
2628

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

29-
::: info
30-
`MX_ENCRYPT_KEY` `--encrypt_key` 不是必须的,默认取机器的 [machine-id](https://www.npmjs.com/package/node-machine-id)
31-
:::
31+
<Callout type="info">
32+
`MX_ENCRYPT_KEY` `--encrypt_key` 不是必须的,默认取机器的
33+
[machine-id](https://www.npmjs.com/package/node-machine-id)
34+
</Callout>
3235

33-
::: warning
36+
<Callout type="warning">
3437
此操作时不可逆的,操作前请备份数据库。
35-
:::
38+
39+
</Callout>
3640

3741
## 自动化加密配置(进阶指令)(非必要)
3842

39-
::: danger
40-
此操作时也是不可逆的,操作前请备份数据库。
41-
:::
43+
<Callout type="error">
44+
此操作时不可逆的,操作前请备份数据库。
45+
46+
</Callout>
4247

4348
```bash
4449
cd core

0 commit comments

Comments
 (0)