Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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("*"));
Expand Down
5 changes: 2 additions & 3 deletions src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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