Skip to content

Commit

Permalink
remove ruleset
Browse files Browse the repository at this point in the history
ruleset are causing more issues than it's solving. Removing for now.
  • Loading branch information
xtuc committed Feb 10, 2023
1 parent ff701bb commit 9c570a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
1 change: 1 addition & 0 deletions backend/src/utils/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export type Handle = {
domain: string | null
}

// Parse a "handle" in the form: `[@] <local-part> '@' <domain>`
export function parseHandle(query: string): Handle {
// Remove the leading @, if there's one.
if (query.startsWith('@')) {
Expand Down
18 changes: 0 additions & 18 deletions tf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -170,21 +170,3 @@ resource "cloudflare_access_application" "wildebeest_access" {
session_duration = "730h"
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
}
}

0 comments on commit 9c570a5

Please sign in to comment.