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 config/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spring:
format_sql: true
dialect: org.hibernate.dialect.PostgreSQLDialect
jwt:
secret: ${SPRING_JWT_SECRET:default_secret}
secret: ${SPRING_JWT_SECRET:MyVeryStrongSecretKeyForJWT2024!!ThisIsAtLeast32BytesLongForHS256Algorithm}
expire-ms: ${SPRING_JWT_EXPIRE_MS:3600000}

security:
Expand Down
49 changes: 49 additions & 0 deletions config/spot-gateway-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
cloud:
gateway:
server:
webflux:
routes:
- id: user-auth
uri: http://spot-user:8081
predicates:
- Path=/api/login,/api/join,/api/auth/refresh

- id: user-service
uri: http://spot-user:8081
predicates:
- Path=/api/users/**, /api/admin/**

- id: store-service
uri: http://localhost:8083
predicates:
- Path=/api/stores/**

- id: order-service
uri: http://localhost:8082
predicates:
- Path=/api/orders/**

- id: payment-service
uri: http://localhost:8084
predicates:
- Path=/api/payments/**

- id: block-internal
uri: http://localhost:9999
predicates:
- Path=/internal/**
filters:
- SetStatus=403

logging:
level:
org.springframework.boot.context.config: DEBUG
org.springframework.cloud.gateway: DEBUG
org.springframework.cloud.gateway.route.RouteDefinitionRouteLocator: DEBUG
org.springframework.cloud.gateway.handler.RoutePredicateHandlerMapping: TRACE

management:
endpoints:
web:
exposure:
include: "*"
2 changes: 1 addition & 1 deletion config/spot-gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ management:
include: health, info, metrics, gateway
endpoint:
gateway:
access: unrestricted
access: unrestricted
1 change: 1 addition & 0 deletions data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/generators/__pycache__/*
234 changes: 0 additions & 234 deletions data/QUICKSTART.md

This file was deleted.

Loading
Loading