docs: edit README

This commit is contained in:
ttionya
2024-09-06 23:26:42 +08:00
parent 9b5c7fccc0
commit 7bdd2d4ffb
2 changed files with 25 additions and 17 deletions

View File

@@ -322,7 +322,7 @@ When using `Docker Compose`, this does not need to be changed. However, when usi
Default: `/bitwarden/data`
※ Please refer to the [`Notification`](#notification) section for notification-related environment variables.
<strong>※ Please refer to the [`Notification`](#notification) section for notification-related environment variables.</strong>
<details>
<summary><strong>※ Other environment variables</strong></summary>
@@ -459,16 +459,20 @@ For different notification scenarios, **the backup tool provides `%{subject}` an
### Ping Test
You can use the following command to test the Ping function.
You can use the following command to test the Ping sending.
The "test identifier" is the identifier in the table in the [previous section](#ping). You can use `completion`, `start`, `success`, or `failure`, which determines which set of environment variables to use.
```shell
docker run --rm -it \
-e PING_URL='<your ping url>' -e PING_URL_CURL_OPTIONS='<your curl options for PING_URL>' \
-e PING_URL_WHEN_START='<your ping url>' -e PING_URL_WHEN_START_CURL_OPTIONS='<your curl options for PING_URL_WHEN_START>' \
-e PING_URL_WHEN_SUCCESS='<your ping url>' -e PING_URL_WHEN_SUCCESS_CURL_OPTIONS='<your curl options for PING_URL_WHEN_SUCCESS>' \
-e PING_URL_WHEN_FAILURE='<your ping url>' -e PING_URL_WHEN_FAILURE_CURL_OPTIONS='<your curl options for PING_URL_WHEN_FAILURE>' \
-e PING_URL='<your ping url>' \
-e PING_URL_CURL_OPTIONS='<your curl options for PING_URL>' \
-e PING_URL_WHEN_START='<your ping url>' \
-e PING_URL_WHEN_START_CURL_OPTIONS='<your curl options for PING_URL_WHEN_START>' \
-e PING_URL_WHEN_SUCCESS='<your ping url>' \
-e PING_URL_WHEN_SUCCESS_CURL_OPTIONS='<your curl options for PING_URL_WHEN_SUCCESS>' \
-e PING_URL_WHEN_FAILURE='<your ping url>' \
-e PING_URL_WHEN_FAILURE_CURL_OPTIONS='<your curl options for PING_URL_WHEN_FAILURE>' \
ttionya/vaultwarden-backup:latest ping <test identifier>
```
@@ -543,7 +547,7 @@ MY_ENV: "example4"
The old image can still be used, just **DEPRECATED**. Please migrate to the new image as soon as possible.
Please follow the instructions below to migrate:
**Migration Instructions**
If you use automatic backups, you only need to replace the image with `ttionya/vaultwarden-backup`. Note the name of your volume.

View File

@@ -320,7 +320,7 @@ Rclone 全局参数,详见 [flags](https://rclone.org/flags/)。
默认值:`/bitwarden/data`
※ 通知相关环境变量请查看[通知](#通知)部分。
<strong>※ 通知相关环境变量请查看[通知](#通知)部分。</strong>
<details>
<summary><strong>※ 其他环境变量</strong></summary>
@@ -454,19 +454,23 @@ docker run --rm -it -e MAIL_SMTP_VARIABLES='<your smtp variables>' -e MAIL_TO='<
### Ping 测试
### Ping 发送测试
你可以使用下面的命令测试 Ping 功能。
你可以使用下面的命令测试 Ping 发送功能。
测试标识”是[上一节](#ping)表格中的标识,你可以使用 `completion``start``success``failure`,它决定了使用哪一组环境变量。
test identifier”是[上一节](#ping)表格中的测试标识,你可以使用 `completion``start``success``failure`,它决定了使用哪一组环境变量。
```shell
docker run --rm -it \
-e PING_URL='<your ping url>' -e PING_URL_CURL_OPTIONS='<your curl options for PING_URL>' \
-e PING_URL_WHEN_START='<your ping url>' -e PING_URL_WHEN_START_CURL_OPTIONS='<your curl options for PING_URL_WHEN_START>' \
-e PING_URL_WHEN_SUCCESS='<your ping url>' -e PING_URL_WHEN_SUCCESS_CURL_OPTIONS='<your curl options for PING_URL_WHEN_SUCCESS>' \
-e PING_URL_WHEN_FAILURE='<your ping url>' -e PING_URL_WHEN_FAILURE_CURL_OPTIONS='<your curl options for PING_URL_WHEN_FAILURE>' \
ttionya/vaultwarden-backup:latest ping <测试标识>
-e PING_URL='<your ping url>' \
-e PING_URL_CURL_OPTIONS='<your curl options for PING_URL>' \
-e PING_URL_WHEN_START='<your ping url>' \
-e PING_URL_WHEN_START_CURL_OPTIONS='<your curl options for PING_URL_WHEN_START>' \
-e PING_URL_WHEN_SUCCESS='<your ping url>' \
-e PING_URL_WHEN_SUCCESS_CURL_OPTIONS='<your curl options for PING_URL_WHEN_SUCCESS>' \
-e PING_URL_WHEN_FAILURE='<your ping url>' \
-e PING_URL_WHEN_FAILURE_CURL_OPTIONS='<your curl options for PING_URL_WHEN_FAILURE>' \
ttionya/vaultwarden-backup:latest ping <test identifier>
```
<br>
@@ -540,7 +544,7 @@ MY_ENV: "example4"
旧的镜像仍然可以使用,只是被标记为 **DEPRECATED** 了,请尽快迁移到新的镜像。
请根据以下说明进行迁移:
**迁移说明**
如果你使用自动备份,你只需要把镜像名改为 `ttionya/vaultwarden-backup`。注意你的卷的名称。