From 96784268fed9663061d74508893899281165b705 Mon Sep 17 00:00:00 2001 From: 1winhyun Date: Fri, 7 Nov 2025 21:08:49 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20cors=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EB=B0=8F=20=EC=84=9C=EB=B2=84=20=EB=B3=80=EA=B2=BD=EC=97=90=20?= =?UTF-8?q?=EB=94=B0=EB=A5=B8=20=EC=84=A4=EC=A0=95=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yaml | 2 +- .../com/unionmate/gateway_service/global/SecurityConfig.java | 3 ++- src/main/resources/application-prod.yml | 5 ++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f12df91..33b66e5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -42,6 +42,6 @@ jobs: with: context: . file: ./Dockerfile - platforms: linux/amd64 + platforms: linux/arm64 tags: ${{ secrets.DOCKER_USERNAME }}/unionmate-gateway-service:latest push: true diff --git a/src/main/java/com/unionmate/gateway_service/global/SecurityConfig.java b/src/main/java/com/unionmate/gateway_service/global/SecurityConfig.java index 0922f33..0033016 100644 --- a/src/main/java/com/unionmate/gateway_service/global/SecurityConfig.java +++ b/src/main/java/com/unionmate/gateway_service/global/SecurityConfig.java @@ -14,7 +14,8 @@ public class SecurityConfig { @Bean public CorsWebFilter corsWebFilter() { CorsConfiguration config = new CorsConfiguration(); - config.setAllowedOrigins(List.of("http://localhost:3000", "http://localhost:5173")); + config.setAllowedOrigins( + List.of("http://localhost:3000", "http://localhost:5173", "https://129.154.54.225.nip.io")); config.setAllowedMethods(Arrays.asList("HEAD", "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")); config.setAllowCredentials(true); config.setAllowedHeaders(List.of("*")); diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index a76ab54..74837f7 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -12,7 +12,7 @@ eureka: fetch-registry: true register-with-eureka: true service-url: - defaultZone: http://discovery-service-prod:8761/eureka + defaultZone: http://129.154.54.225:8761/eureka springdoc: api-docs: @@ -21,5 +21,4 @@ springdoc: path: /swagger-ui.html urls: - name: backend-service - url: /api-docs/backend/v3/api-docs - + url: /api-docs/backend/v3/api-docs \ No newline at end of file