Skip to content

Commit a442057

Browse files
authored
vaultwarden
1 parent 8b5bda5 commit a442057

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

i18n/en/docusaurus-plugin-content-docs/version-2.0/apps/vaultwarden.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,23 @@ import Meta from './\_include/vaultwarden.md';
2222
3. **Registration and Login**:
2323
- Follow the wizard to complete the registration and login process.
2424

25+
### Setting up the administration page
26+
27+
Websoft9 has set up plaintext `ADMIN_TOKEN` by default, which can be used normally. If you want to set the secret text of argon2 as TOKEN, the steps are as follows:
28+
29+
1. Use the command to generate the secret text of argon2
30+
31+
```
32+
$ echo -n "MySecretPassword123" | argon2 "$(openssl rand -base64 32)" -e -id -k 65540 -t 3 -p 4
33+
$ argon2id$v=19$m=65540,t=3,p=4$UTVtVDgyUkJLYkwrVjF6T3k3NjBnblk4M2JMZ3RYRW5BdUlHTXZhOVY3RT0$4uUKMzLRZHSPK0Fo3WmTdDI3suCdNGDi3F+ IrZ8AQys
34+
```
35+
36+
2. **My Apps > Compose > Go to Edit repository**, edit the .env file and set the value of `ADMIN_TOKEN` to cipher
37+
38+
3. Rebuild the application
39+
40+
4. Browser access to https://URL/admin and enter the plaintext password corresponding to the ciphertext to use it
41+
2542
## Configuration Options {#configs}
2643

2744
- **Multilingual Support (×)**: Vaultwarden does not support multiple languages.

versioned_docs/version-2.0/apps/vaultwarden.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,27 @@ import Meta from './_include/vaultwarden.md';
1717

1818
1. 登录到 Websoft9 控制台,点击左侧的 **网关** 菜单[为 Vaultwarden 应用设置 HTTPS 访问](./domain-https#console)(必要操作,否则无法使用)
1919

20-
2. Websoft9 控制台安装 Vaultwarden 后,通过 **我的应用** 查看应用详情,在 **访问** 标签页中获取登录信息。
20+
2. Websoft9 控制台安装 Vaultwarden 后,通过 **我的应用** 查看应用详情,在 **访问** 标签页中获取访问 URL
2121

2222
3. 根据向导完成注册、登录
2323

24+
### 设置管理页面
25+
26+
Websoft9 默认设置了明文的 `ADMIN_TOKEN`, 可正常使用。如果想设置 argon2 的密文作为 TOKEN,步骤如下:
27+
28+
1. 使用命令生成 argon2 的密文
29+
30+
```
31+
$ echo -n "MySecretPassword123" | argon2 "$(openssl rand -base64 32)" -e -id -k 65540 -t 3 -p 4
32+
$ $argon2id$v=19$m=65540,t=3,p=4$UTVtVDgyUkJLYkwrVjF6T3k3NjBnblk4M2JMZ3RYRW5BdUlHTXZhOVY3RT0$4uUKMzLRZHSPK0Fo3WmTdDI3suCdNGDi3F+IrZ8AQys
33+
```
34+
35+
2. **我的应用 > 编排 > 马上修改**,编辑 .env 文件,将`ADMIN_TOKEN`的值设置为密文
36+
37+
3. 重建应用
38+
39+
4. 浏览器访问 https://URL/admin,输入密文对应的明文密码即可使用
40+
2441
## 配置选项{#configs}
2542

2643
- 多语言(√)

0 commit comments

Comments
 (0)