From 082ef6167ea188de4a0439fe63baaca41b19b45b Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Fri, 31 Jan 2025 08:14:23 -0500 Subject: terraform: switch to plain hcl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Removed input 'terranix' • Removed input 'terranix/bats-assert' • Removed input 'terranix/bats-support' • Removed input 'terranix/flake-parts' • Removed input 'terranix/nixpkgs' • Removed input 'terranix/systems' • Removed input 'terranix/terranix-examples' --- terraform/rulesets.tf | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 terraform/rulesets.tf (limited to 'terraform/rulesets.tf') diff --git a/terraform/rulesets.tf b/terraform/rulesets.tf new file mode 100644 index 0000000..88a060e --- /dev/null +++ b/terraform/rulesets.tf @@ -0,0 +1,26 @@ +resource "cloudflare_ruleset" "getchoo_com_redirects" { + kind = "zone" + name = "funny redirects" + phase = "http_request_dynamic_redirect" + + description = "Redirect to Tick Tock by Joji" + rules { + expression = "(http.request.uri.path eq \"/hacks\" and http.host eq \"getchoo.com\")" + + action = "redirect" + action_parameters { + from_value { + preserve_query_string = false + status_code = 301 + target_url { + value = "https://www.youtube.com/watch?v=RvVdFXOFcjw" + } + } + } + description = "tick tock hacks" + enabled = true + } + + zone_id = var.cloudflare_getchoo_com_zone_id +} + -- cgit v1.2.3