summaryrefslogtreecommitdiff
path: root/terraform/rulesets.tf
diff options
context:
space:
mode:
authorSeth Flynn <[email protected]>2025-01-31 08:14:23 -0500
committerSeth Flynn <[email protected]>2025-02-03 05:34:09 -0500
commit082ef6167ea188de4a0439fe63baaca41b19b45b (patch)
treec51217b3b47601ee95cacfeaeaef426fb7128a6d /terraform/rulesets.tf
parentd5ad065e31f4d84824463829eeabfb55dbe9ece4 (diff)
terraform: switch to plain hcl
• 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'
Diffstat (limited to 'terraform/rulesets.tf')
-rw-r--r--terraform/rulesets.tf26
1 files changed, 26 insertions, 0 deletions
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
+}
+