Skip to content

Commit

Permalink
Update main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
xmflsct committed Feb 9, 2023
1 parent 7a29d25 commit 8ededc8
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions tf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -171,20 +171,20 @@ resource "cloudflare_access_application" "wildebeest_access" {
auto_redirect_to_identity = false
}

resource "cloudflare_ruleset" "wildebeest_inbox" {
zone_id = trimspace(var.cloudflare_zone_id)
name = "Wildebeest"
description = "Ruleset for Wildebeest"
kind = "zone"
phase = "http_request_firewall_managed"

rules {
action = "skip"
action_parameters {
phases = ["http_request_firewall_managed"]
}
expression = "(http.host eq \"${var.cloudflare_deploy_domain}\" and http.request.uri.path contains \"/ap/users/\" and http.request.uri.path contains \"inbox\")"
description = "Bypass firewall for Wildebeest Inbox"
enabled = true
}
}
# resource "cloudflare_ruleset" "wildebeest_inbox" {
# zone_id = trimspace(var.cloudflare_zone_id)
# name = "Wildebeest"
# description = "Ruleset for Wildebeest"
# kind = "zone"
# phase = "http_request_firewall_managed"

# rules {
# action = "skip"
# action_parameters {
# phases = ["http_request_firewall_managed"]
# }
# expression = "(http.host eq \"${var.cloudflare_deploy_domain}\" and http.request.uri.path contains \"/ap/users/\" and http.request.uri.path contains \"inbox\")"
# description = "Bypass firewall for Wildebeest Inbox"
# enabled = true
# }
# }

0 comments on commit 8ededc8

Please sign in to comment.