We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
使用v2ray自带的caddy,开始的时候是生成证书的,后来突然不生成了,想要通过caddy的cloudflare模块自动发证书,发现也不支持?
这里是早期自动生成的证书
ll /root/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/ total 20 drwx------. 2 root root 4096 Mar 17 02:35 mac.domain.host drwx------. 2 root root 4096 Mar 17 02:34 mobile.domain.host drwx------. 2 root root 4096 Feb 9 10:56 vless.domain.host drwx------. 2 root root 4096 Jan 30 04:13 way3.domain.run drwx------. 2 root root 4096 Feb 9 06:03 way.domain.host
这是后来新增的域名
ll total 48 -rw-r--r--. 1 root root 163 Apr 4 00:54 guest_los.domain.host.conf -rw-r--r--. 1 root root 47 Apr 4 00:54 guest_los.domain.host.conf.add -rw-r--r--. 1 root root 171 Mar 21 07:33 ios_los_h2.domain.host.conf -rw-r--r--. 1 root root 47 Mar 21 07:33 ios_los_h2.domain.host.conf.add -rw-r--r--. 1 root root 167 Mar 21 04:32 ios_los.domain.host.conf -rw-r--r--. 1 root root 47 Mar 21 04:28 ios_los.domain.host.conf.add -rw-r--r--. 1 root root 167 Mar 21 04:28 mac_los.domain.host.conf -rw-r--r--. 1 root root 47 Mar 21 04:28 mac_los.domain.host.conf.add -rw-r--r--. 1 root root 165 Apr 4 01:33 vm_los.domain.host.conf -rw-r--r--. 1 root root 47 Apr 4 01:33 vm_los.domain.host.conf.add -rw-r--r--. 1 root root 163 Apr 4 01:38 vm_ws_los.domain.host.conf -rw-r--r--. 1 root root 47 Apr 4 01:38 vm_ws_los.domain.host.conf.add
最近总是没发正常连接,然后通过http访问cloudflare提示证书有问题,最终才定位到这里来
安装candy的cloudflare模块,貌似也成功了
caddy add-package github.com/caddy-dns/cloudflare 2024/04/04 10:06:50.948 INFO this executable will be replaced {"path": "/usr/local/bin/caddy"} 2024/04/04 10:06:50.949 INFO requesting build {"os": "linux", "arch": "amd64", "packages": ["github.com/caddy-dns/cloudflare"]} 2024/04/04 10:06:51.182 INFO build acquired; backing up current executable {"current_path": "/usr/local/bin/caddy", "backup_path": "/usr/local/bin/caddy.tmp"} 2024/04/04 10:06:51.185 INFO downloading binary {"destination": "/usr/local/bin/caddy"} 2024/04/04 10:06:53.217 INFO download successful; displaying new binary details {"location": "/usr/local/bin/caddy"} Module versions: dns.providers.cloudflare v0.0.0-20231220181002-8789126791ed Non-standard modules: 1 Unknown modules: 0 Version: v2.7.6 h1:w0NymbG2m9PcvKWsrXO6EEkY9Ru4FJK8uQbYcev1p3A= 2024/04/04 10:06:53.582 INFO upgrade successful; please restart any running Caddy instances {"executable": "/usr/local/bin/caddy"}
但是重新启动caddy的时候配置检查不通过,提示
警告! (重启) Caddy 失败 检测到运行失败, 自动执行测试运行. V2Ray 正在运行, 跳过测试 测试运行 Caddy .. Caddy 运行失败信息: 2024/04/04 10:26:51.627 INFO using provided configuration {"config_file": "/etc/caddy/Caddyfile", "config_adapter": ""} Error: adapting config using caddyfile: parsing caddyfile tokens for 'tls': wrong argument count or unexpected line ending after 'cloudflare_api_token}', at /etc/caddy/tls/domain.host.conf.add:1 import chain ['/etc/caddy/233boy/guest_los.domain.host.conf:5 (import)']
The text was updated successfully, but these errors were encountered:
cloudflare自动下发tls证书的问题是配置写的格式不对,请忽略
仅剩下caddy不自动下发证书的问题
Sorry, something went wrong.
大哥 我之前也是这样的,一直没有生成证书,搞了2天结果是CF上面没有生成证书。
No branches or pull requests
使用v2ray自带的caddy,开始的时候是生成证书的,后来突然不生成了,想要通过caddy的cloudflare模块自动发证书,发现也不支持?
这里是早期自动生成的证书
这是后来新增的域名
最近总是没发正常连接,然后通过http访问cloudflare提示证书有问题,最终才定位到这里来
安装candy的cloudflare模块,貌似也成功了
但是重新启动caddy的时候配置检查不通过,提示
The text was updated successfully, but these errors were encountered: