Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Example Files

Dakota G edited this page Jan 27, 2022 · 1 revision

Caddy w/ Cloudflare

{
    # Global options block. Entirely optional, https is on by default
    # Optional email key for lets encrypt
    email [email protected]
    # Optional staging lets encrypt for testing. Comment out for production.
    #acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
    acme_dns cloudflare <CLOUDFLARE_API_KEY>
}
hdns.co {
    reverse_proxy hdns_proxy:80
}
*.hdns.co {
    reverse_proxy hdns_proxy:80
}

Caddy w/ Cloudflare & Nested Domains (HTTP-Only)

{
    # Global options block. Entirely optional, https is on by default
    # Optional email key for lets encrypt
    email [email protected]
    # Optional staging lets encrypt for testing. Comment out for production.
    #acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
    acme_dns cloudflare <CLOUDFLARE_API_KEY>
}
hdns.co {
    reverse_proxy hdns_proxy:80
}
*.hdns.co {
    reverse_proxy hdns_proxy:80
}
http://*.*.hdns.co {
    reverse_proxy hdns_proxy:80
}
http://*.*.*.hdns.co {
    reverse_proxy hdns_proxy:80
}
Clone this wiki locally