Skip to content

Instantly share code, notes, and snippets.

@cuu508
Created June 4, 2021 09:20
Show Gist options
  • Save cuu508/2d3abe1551d8b06f6be70c8e48b5a9b1 to your computer and use it in GitHub Desktop.
Save cuu508/2d3abe1551d8b06f6be70c8e48b5a9b1 to your computer and use it in GitHub Desktop.
Caddyfile which pings hc-ping.com every 5 minutes
:8081 {
reverse_proxy /secret/ hc-ping.com {
health_uri /8bc796e2-bbd5-4956-8e36-5f7f836b1696
health_interval 5m
health_headers {
Host hc-ping.com
}
}
respond "Hello world"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment