Skip to content

Commit

Permalink
Add path rules
Browse files Browse the repository at this point in the history
  • Loading branch information
tomseago committed Jan 31, 2024
1 parent c3c8e91 commit 1bb58ff
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion devops/prod/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ resource "google_compute_url_map" "main" {
# Host rules get us from a hostname to a named path_matcher
host_rule {
path_matcher = "prod"
hosts = ["www.baaahs.org", "baaahs.org"]
hosts = ["www.baaahs.org", "baaahs.org", "www-gcp.baaahs.org"]
}

host_rule {
Expand All @@ -267,21 +267,33 @@ resource "google_compute_url_map" "main" {
path_matcher {
name = "prod"
default_service = google_compute_backend_bucket.prod.id
path_rule {
paths = ["/*"]
}
}

path_matcher {
name = "static"
default_service = google_compute_backend_bucket.static.id
path_rule {
paths = ["/*"]
}
}

path_matcher {
name = "staging"
default_service = google_compute_backend_bucket.staging.id
path_rule {
paths = ["/*"]
}
}

path_matcher {
name = "dev"
default_service = google_compute_backend_bucket.dev.id
path_rule {
paths = ["/*"]
}
}
}

Expand Down

0 comments on commit 1bb58ff

Please sign in to comment.