Last active
October 16, 2022 14:15
-
-
Save xbot/27040ca35b7763f28403b2242efa3751 to your computer and use it in GitHub Desktop.
A Caddyfile indicating the configurations for subdomains of a wildcard domain and the HTTPS certificate setup with DNS challenge.
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
*.lab.mydomain.com { | |
tls { | |
dns cloudflare {env.CLOUDFLARE_API_TOKEN} | |
} | |
@bt host bt.lab.mydomain.com | |
handle @bt { | |
reverse_proxy bt:8759 | |
} | |
@bitwarden host bitwarden.lab.mydomain.com | |
handle @bitwarden { | |
encode gzip | |
reverse_proxy /notifications/hub/negotiate nas:7777 | |
reverse_proxy /notifications/hub nas:3012 | |
reverse_proxy nas:7777 | |
} | |
@pve host pve.lab.mydomain.com | |
handle @pve { | |
reverse_proxy https://pve:8006 { | |
transport http { | |
tls_insecure_skip_verify | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment