29 lines
558 B
Caddyfile
29 lines
558 B
Caddyfile
{
|
|
email {env.ACME_EMAIL}
|
|
acme_dns cloudflare {env.CF_AUTH_TOKEN}
|
|
admin 0.0.0.0:2019
|
|
}
|
|
|
|
*.housh.dev {
|
|
tls {
|
|
dns cloudflare {env.CF_AUTH_TOKEN}
|
|
propagation_delay 2m
|
|
resolvers 1.1.1.1
|
|
}
|
|
|
|
# Example of reverse proxy on a separate host.
|
|
|
|
@gitea host git.housh.dev
|
|
handle @gitea {
|
|
reverse_proxy 192.168.10.76:3000
|
|
}
|
|
|
|
# Example of revers proxy on same host
|
|
# This assumes the container name is gitea.
|
|
|
|
@gitea host git.housh.dev
|
|
handle @gitea {
|
|
reverse_proxy gitea:3000 # uses the container name for DNS discovery.
|
|
}
|
|
}
|