Commit 27c8cbd5 authored by Cameron McFarland's avatar Cameron McFarland

Add a pagerule for gitlabstatus.com

parent 65dae68f
......@@ -14,6 +14,22 @@
# order.
#
# Redirect status.gitlab.com requests to the new status.gitlabstatus.com
resource "cloudflare_page_rule" "status_gitlab_com_page_rule" {
zone_id = var.cloudflare_zone_id
target = "status.gitlab.com"
depends_on = [cloudflare_page_rule.gitlab_com_deprecated_2_archive_page_rule]
priority = 9
status = "active"
actions {
forwarding_url {
url = "https://status.gitlabstatus.com"
status_code = 301
}
}
}
# We want to cache archive objects, even if they are accessed via the API.
resource "cloudflare_page_rule" "gitlab_com_deprecated_2_archive_page_rule" {
zone_id = var.cloudflare_zone_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment