This is a CLI program that let you set CNAME to use Cloudflare using the partner program.
Both Python2.x and Python3.x is supported. No extra library is needed.
To use Chinese menu, set environment variable LANG
to use UTF-8 (for example, zh_CN.UTF-8).
- Apply for partner program at https://www.cloudflare.com/partners/.
- Clone this repository or download script.
- Run
python ./cloudflare-partner-cli.py
. - Enter your
host_key
. You can get it here. - Enter the account you use to manage domains (your personal account, not partner login account). User key is stored in
.cfhost
. - Follow the instructions on screen.
- Value of
resolve_to
has to be DNS record (for example: google.com) instead of IP address. - You may still need to wait some time after running
ssl_verification
.
使用Cloudflare partner功能用CNAME方式接入cloudflare。
你可以使用Python2.x或者Python3.x。无需安装任何依赖。
如需使用中文菜单,请将环境变量的LANG
设置为使用UTF-8 (比如zh_CN.UTF-8)。
- 申请Cloudflare partner计划 https://www.cloudflare.com/partners/ 。
- clone本项目或者直接下载脚本。
- 运行
python ./cloudflare-partner-cli.py
。 - 输入
host_key
。可以从这里获得。 - 输入要用来管理域名的账号 (你的个人账号,不是partner账号)。账户信息保存在
.cfhost
文件中。 - 按照屏幕提示操作。
源站地址
必须为DNS记录,如google.com,不能填写IP地址。- 域名生效且运行
开通SSL
之后,仍需要等一段时间SSL证书才会生效