Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
condition {
name = "request_is_us"
statement = "req.http.X-Geoip-Continent ~ \"(NA|SA|OC|AS)\" || (!F_eu_origin.healthy && F_us_origin.healthy)"
type = "REQUEST"
priority = 100
}
condition {
name = "request_is_eu"
statement = "req.http.X-Geoip-Continent !~ \"(NA|SA|OC|AS)\" || (!F_us_origin.healthy && F_eu_origin.healthy)"
type = "REQUEST"
priority = 100
}
backend {
name = "us_origin"
request_condition = "request_is_us"
healthcheck = "us_healthcheck"
}
backend {
name = "eu_origin"
request_condition = "request_is_eu"
healthcheck = "eu_healthcheck"
}
healthcheck {
name = "eu_healthcheck"
host = "example-eu-app.herokuapp.com"
path = "/__gtg"
}
healthcheck {
name = "us_healthcheck"
host = "example-us-app.herokuapp.com"
path = "/__gtg"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.