Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeffersonqin/cloudflare-dynamic-best
Automatically select the best Cloudflare IP for your Cloudflare DNS record
https://github.com/jeffersonqin/cloudflare-dynamic-best
cloudflare cloudflare-api dns network proxy speedtest
Last synced: 14 days ago
JSON representation
Automatically select the best Cloudflare IP for your Cloudflare DNS record
- Host: GitHub
- URL: https://github.com/jeffersonqin/cloudflare-dynamic-best
- Owner: JeffersonQin
- License: mit
- Created: 2023-07-02T06:53:13.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-03T06:51:11.000Z (3 months ago)
- Last Synced: 2024-10-25T03:45:37.496Z (21 days ago)
- Topics: cloudflare, cloudflare-api, dns, network, proxy, speedtest
- Language: Rust
- Homepage:
- Size: 17.6 KB
- Stars: 30
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dynamic Best Cloudflare (自动设置 Cloudflare 优选 IP)
[中文 README](README.zh.md)
A tool to automatically select best Cloudflare IP for a Cloudflare DNS record.
## Install
Install the binary via cargo and crates.io,
```bash
cargo install cf-dynamic-best
```Then, get [CloudflareSpeedTest](https://github.com/XIU2/CloudflareSpeedTest) ready. Following is the installation guide from their repository, different platform may differ, the following is the guide for linux and amd64.
```bash
mkdir CloudflareSTcd CloudflareST
# select for your platform and arch in their release page
wget -N https://github.com/XIU2/CloudflareSpeedTest/releases/download/v2.2.4/CloudflareST_linux_amd64.tar.gztar -zxf CloudflareST_linux_amd64.tar.gz
chmod +x CloudflareST
```## Usage
```bash
$ cf-dynamic-best --help
A tool to automatically set best Cloudflare IP for a Cloudflare DNS recordUsage: cf-dynamic-best --config-dir --cloudflare-st-dir
Options:
-c, --config-dir
-s, --cloudflare-st-dir
-h, --help Print help
-V, --version Print version
```* `--config` is the file for config path.
* `--cloudflare-st-dir` is the directory where `CloudflareST` binary file is located.## Configuration
Take a look at [`config.template.en.yaml`](config.template.en.yaml) for configuration file with English comment.