Skip to content

Instantly share code, notes, and snippets.

@fwartner
Created January 8, 2021 13:06
Show Gist options
  • Save fwartner/4c497bac373f2a8506e4cafbbc4a1019 to your computer and use it in GitHub Desktop.
Save fwartner/4c497bac373f2a8506e4cafbbc4a1019 to your computer and use it in GitHub Desktop.
{
on_demand_tls {
ask https://servr.app/api/validate
}
}
http {
redir http:// https://{host}{uri}
}
tls [email protected] {
on_demand
}
reverse_proxy https://status.uptimemate.com {
header_up Host status.uptimemate.com
header_up X-Real-IP {remote}
header_up X-Forwarded-For {remote}
header_up Servr-Custom-Domain {host}
header_up X-Forwarded-Port {server_port}
header_up X-Forwarded-Proto {scheme}
health_timeout 5s
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment