Skip to content

Commit

Permalink
🔧 configure cors for github.com, remove cloud domain mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Shion1305 committed Apr 13, 2024
1 parent 8554e1c commit 0076cbe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions envs/dev/cloudrun.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,3 @@ resource "google_cloud_run_service_iam_policy" "noauth" {

policy_data = data.google_iam_policy.noauth.policy_data
}

resource "google_cloud_run_domain_mapping" "domain-mapping" {
location = "asia-northeast1"
name = "lgtm.a.shion.pro"

metadata {
namespace = var.project_id
}

spec {
route_name = google_cloud_run_service.cloudrun-dev-main-backend.name
}
}
2 changes: 1 addition & 1 deletion envs/dev/gcs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "google_storage_bucket" "public_image_bucket" {
uniform_bucket_level_access = true

cors {
origin = [""]
origin = ["https://github.com"]
method = ["GET"]
response_header = ["*"]
max_age_seconds = 3600
Expand Down

0 comments on commit 0076cbe

Please sign in to comment.