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