From 0076cbe56e8155c2deaa4ccbae4a10479cb42b38 Mon Sep 17 00:00:00 2001 From: Shion Ichikawa Date: Sun, 14 Apr 2024 05:11:38 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20configure=20cors=20for=20github.?= =?UTF-8?q?com,=20remove=20cloud=20domain=20mapping?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- envs/dev/cloudrun.tf | 13 ------------- envs/dev/gcs.tf | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/envs/dev/cloudrun.tf b/envs/dev/cloudrun.tf index 6b21ee6..ff913d2 100755 --- a/envs/dev/cloudrun.tf +++ b/envs/dev/cloudrun.tf @@ -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 - } -} diff --git a/envs/dev/gcs.tf b/envs/dev/gcs.tf index 05fda41..6f59d3d 100644 --- a/envs/dev/gcs.tf +++ b/envs/dev/gcs.tf @@ -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