Browse Source

docs: add describe of asset options

v1.x.x
dnomd343 2 years ago
parent
commit
bacaa9926f
  1. 29
      README.md
  2. 13
      docs/example_2.md

29
README.md

@ -43,7 +43,7 @@ proxy:
network: network:
··· 网络选项 ··· ··· 网络选项 ···
update: asset:
··· 路由资源 ··· ··· 路由资源 ···
custom: custom:
@ -153,14 +153,18 @@ network:
```yaml ```yaml
# 以下配置仅为示范 # 以下配置仅为示范
update: asset:
cron: "0 0 4 * * *" # 每天凌晨4点更新 disable: false
proxy: "socks5://192.168.2.4:1080" # 通过 socks5 代理更新资源 update:
url: cron: "0 0 4 * * *" # 每天凌晨4点更新
geoip.dat: "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat" proxy: "socks5://192.168.2.4:1080" # 通过 socks5 代理更新资源
geosite.dat: "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat" url:
geoip.dat: "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat"
geosite.dat: "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat"
``` ```
+ `disable` :是否关闭路由资源文件载入,默认为 `false`
+ `cron` :触发更新的 Cron 表达式,留空时关闭自动升级,默认为空 + `cron` :触发更新的 Cron 表达式,留空时关闭自动升级,默认为空
+ `proxy` :通过指定的代理服务更新资源文件,留空时直连更新,默认为空 + `proxy` :通过指定的代理服务更新资源文件,留空时直连更新,默认为空
@ -380,11 +384,12 @@ network:
- fe80::/10 - fe80::/10
- ff00::/8 - ff00::/8
update: asset:
cron: "0 0 4 * * *" update:
url: cron: "0 0 4 * * *"
geoip.dat: "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat" url:
geosite.dat: "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat" geoip.dat: "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat"
geosite.dat: "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat"
``` ```
用户需要根据实际需求更改配置文件,保存以后重启容器即可生效: 用户需要根据实际需求更改配置文件,保存以后重启容器即可生效:

13
docs/example_2.md

@ -105,12 +105,13 @@ radvd:
prefix: prefix:
cidr: 2409:8a55:e2a7:3a0::/64 cidr: 2409:8a55:e2a7:3a0::/64
update: asset:
cron: "0 5 6 * * *" update:
proxy: "socks5://192.168.2.2:1094" # 通过代理下载 Github 文件 cron: "0 5 6 * * *"
url: proxy: "socks5://192.168.2.2:1094" # 通过代理下载 Github 文件
geoip.dat: "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat" url:
geosite.dat: "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat" geoip.dat: "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat"
geosite.dat: "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat"
``` ```
### 代理配置 ### 代理配置

Loading…
Cancel
Save