Update README.md
This commit is contained in:
parent
81fcc5f18a
commit
1756462901
61
README.md
61
README.md
@ -1,27 +1,52 @@
|
||||
项目搬运,原作者两位大佬 [tianshipapa](https://github.com/tianshipapa) 和 [ymyuuu](https://github.com/ymyuuu/BestDomain)
|
||||
只是合并项目
|
||||
# cfipcaiji
|
||||
每3小时自动抓取 https://monitor.gacjie.cn/page/cloudflare/ipv4.html和 https://ip.164746.xyz 的优选ip,
|
||||
形成ip.txt 还有js自动生成的https://cf.090227.xyz 和 https://stock.hostmonit.com/CloudFlareYes
|
||||
- caijiip.yml文件夹里面改成你自己的
|
||||

|
||||
# github项目
|
||||
- 原github作者[ tianshipapa ](https://github.com/tianshipapa)和
|
||||
[ymyuuu](https://github.com/ymyuuu/BestDomain)
|
||||
- 老王只是合并两个项目
|
||||
- github项目地址
|
||||
|
||||
https://github.com/jc-lw/youxuanyuming
|
||||
|
||||

|
||||
|
||||
|
||||
# BestDomain
|
||||
|
||||
## 使用说明
|
||||
|
||||
# cfipcaiji 原理和需要修改的地方
|
||||
|
||||
- 每3小时自动抓取 https://ip.164746.xyz 的优选ip,形成ip.txt
|
||||
- 还有js自动生成的https://cf.090227.xyz
|
||||

|
||||
|
||||
- `caijiip.yml `文件夹里面改成你自己的,否则报错
|
||||

|
||||
- `collect_ips.py`文件 这里是抓取优选IP的网站,如需要可自行修改
|
||||

|
||||
|
||||
# BestDomain 需要Cloudflare API令牌
|
||||
|
||||
- 这里修改你的二级域名开头
|
||||

|
||||

|
||||
- 把上面的链接 修改成 你自己的链接,因为你抓取优选ip可能跟我不一样。
|
||||

|
||||
|
||||
|
||||
|
||||
1. 创建 Cloudflare API 令牌
|
||||
- 访问 [Cloudflare API Tokens](https://dash.cloudflare.com/profile/api-tokens)
|
||||
- 选择需要解析的域名,创建编辑 DNS 权限的 `CF_API_TOKEN`
|
||||
访问 [Cloudflare API Tokens](https://dash.cloudflare.com/profile/api-tokens)
|
||||
|
||||
<img width="1440" alt="image" src="https://github.com/user-attachments/assets/a2000336-9e85-41c8-85f5-30ec75362605">
|
||||
2. 选择需要解析的域名,创建编辑 DNS 权限的` CF_API_TOKEN`
|
||||

|
||||
|
||||
2. 设置 GitHub Secrets
|
||||
- 在你的 GitHub 仓库中,设置 `CF_API_TOKEN` 为你的 Cloudflare API 令牌
|
||||
- 参考 GitHub 文档:[Creating and storing encrypted secrets](https://docs.github.com/zh/actions/security-guides/using-secrets-in-github-actions)
|
||||
|
||||
3. 配置 GitHub Actions 定时任务
|
||||
- 编辑 [.github/workflows/main.yml](.github/workflows/main.yml) 文件,设置 `cron` 表达式以定义任务运行时间
|
||||
"# youxuanyuming"
|
||||
3. 在你的 GitHub 仓库中,设置 `CF_API_TOKEN `为你的 Cloudflare API 令牌
|
||||

|
||||
|
||||
|
||||
4. 配置 GitHub Actions 定时任务
|
||||
- 编辑 [.github/workflows/main.yml](.github/workflows/main.yml) 文件,设置 `cron` 表达式以定义任务运行时间
|
||||
"# youxuanyuming"
|
||||
|
||||
# 设置完成
|
||||

|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user