1. My Caddy version (caddy version
):
Docker-CE caddy/caddy:alpine
2. How I run Caddy:
docker run -v “/home/name/docker/proxy/Caddyfile:/etc/caddy/Caddyfile” -v “/home/name/docker/proxy/config:/root/.config/caddy” -v “/home/name/docker/proxy/local:/root/.local/share/caddy” -v “/home/name/docker/web:/root/wwwroot” -p “80:80” -p “443:443” -p “443:443/udp” caddy/caddy:alpine
a. System environment:
Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-72-generic x86_64)
b. Command:
--config "/etc/caddy/Caddyfile" --adapter "caddyfile"
c. Service/unit/compose file:
NULL
d. My complete Caddyfile or JSON config:
{
email i@qingly.me
experimental_http3
}
example.com, *.example.com {
root * /root/wwwroot
encode zstd gzip brotli
php_fastcgi php-fpm:9000
header {
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
}
tls {
curves p384
dns cloudflare {
api_token "<Zone ID>"
zone_api_token "<Account ID>"
}
}
}
3. The problem I’m having:
Due to restrictions host provider, I can not seem to use HTTP challenge and TLS-ALPN challenge.
Now my IP has been rate limited.
So I want to set it through DNS challenge, but there doesn’t seem to be a Caddy2 document, so I want to ask you if there is any problem with my Caddyfile?
Also, I don’t know if my php_fastcgi setting is correct, should it be set to the service name of php-fpm in compose file? Or does it automatically listen on port 9000
I don’t even know how to set the directory address in Docker.
Thank you!
4. Error messages and/or full log output:
NULL