Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloudflare有两个码怎么填 #159

Open
billizpl opened this issue Mar 26, 2020 · 6 comments
Open

cloudflare有两个码怎么填 #159

billizpl opened this issue Mar 26, 2020 · 6 comments

Comments

@billizpl
Copy link

设置文件里面只有填token码,而cloudflare验证时还需要填zoneID 这个怎么办呀?

@NewFuture
Copy link
Owner

#113 似乎不需要zoneID

@billizpl
Copy link
Author

解决了,填注册用的邮箱和全球码。不需要token key

@NewFuture
Copy link
Owner

这个地方到时可以更新一下

直接使用 zoneID+ Token 更新

@andyf1111
Copy link

批注 2020-08-13 081237
目前按上图这么设置才行,看起来这点迷惑了很多人#155 #159 ,Global key毕竟还是不安全,查了一下按目前这个逻辑至少得把权限扩大到域名所在账户才行。参考:https://community.cloudflare.com/t/how-to-get-zone-id-with-zone-specific-api-key/105300

我没太看懂cache文件逻辑是怎么写的,但是看debug每次都会请求获取一遍区域IDDNS_ID,好像这俩也没存到cache里,最好还是能把他们都放到配置文件里,除了区域ID页面里就能看到,DNS_ID的手动获取方式在Cloudflare文档里也写得很清楚,顶多Windows里的curl语法略有不同,我们可以在README里多加个说明,每次这么请求也会明显拖慢速度#127

@NewFuture
Copy link
Owner

@andyf1111

cloudflare 的 provider如果改成这样可以满足这个需求

  • 1. id 可填写 ZoneID , 这样跳过zone 查询
  • 2. 修改的域名(ipv4ipv6的item)可以填写 RecordId(DNS_ID), 这样跳过record 查询 直接更新对应IP
    默认还是自动查询和自动创建的,用户所需要的操作和学习的内容越少越简单。

@lirener
Copy link

lirener commented Nov 27, 2023

补个config.json的设置图 怕以后自己忘记 和 不会 设置的人 看
cloudflare更新DDNS设置图

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants