Last active
March 21, 2024 00:35
-
-
Save jschwindt/ee354f752679a23e0b99fa8da6610baa to your computer and use it in GitHub Desktop.
Caddyfile with Cloudflare TLS certificate generation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(common_directives) { | |
tls {$CLOUDFLARE_EMAIL} { | |
dns cloudflare {env.CLOUDFLARE_API_TOKEN} | |
} | |
encode gzip | |
} | |
{$NTFY_BASE_URL} { | |
import common_directives | |
reverse_proxy ntfy:8000 | |
} | |
{$KUMA_BASE_URL} { | |
import common_directives | |
reverse_proxy kuma:3001 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A sample
.env
file for this Caddyfile: