1. Caddy version (caddy version
):
V2.4.6
2. How I run Caddy:
I run caddy from the digital ocean marketplace
a. System environment:
Ubuntu 18.04
b. Command:
sudo curl -o /usr/bin/caddy -L https://caddyserver.com/api/download?os=linux&arch=amd64&p=github.com%2Fcaddy-dns%2Fcloudflare&idempotency=43093767053855
d. My complete Caddyfile or JSON config:
{
"admin": {
"listen": "0.0.0.0:2019"
},
"apps": {
"http": {
"servers": {
"srv0": {
"listen": [
":80"
],
"routes": [
{
"match": [
{
"host": [
"151.260.28.728"
]
}
],
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [
{
"dial": "www.example.com:80"
}
]
}
]
}
]
}
],
"terminal": true
}
]
},
"srv1": {
"listen": [
":443"
],
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [
{
"dial": "www.example.com:80"
}
]
}
]
}
]
}
}
},
"tls": {
"automation": {
"policies": [
{
"on_demand": true
}
],
"on_demand": {
"ask": "https://example.com/caddy/allowed-domain"
}
}
}
}
}
3. The problem I’m having:
Hello, I’m new to Caddy and I’m currently running it from the digital ocean marketplace which is great.
I’m having an issue with installing the Caddy-dns Cloudflare module.
Each time I try downloading the module with the command above, it downloads halfway and stops for hours (screenshot attached).
Kindly let me know if there is any other way to install the Cloudflare module or how I can resolve the current issue.
Thank you for your time
4. Error messages and/or full log output:
No error message, it just does not complete download
5. What I already tried:
Google search, and reading the docs