init
This commit is contained in:
34
backend/gateway/src/main/resources/application.yml
Normal file
34
backend/gateway/src/main/resources/application.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
server:
|
||||
port: 8080
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: k12study-gateway
|
||||
cloud:
|
||||
gateway:
|
||||
routes:
|
||||
- id: auth
|
||||
uri: http://localhost:8081
|
||||
predicates:
|
||||
- Path=/api/auth/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
- id: upms
|
||||
uri: http://localhost:8082
|
||||
predicates:
|
||||
- Path=/api/upms/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,info
|
||||
|
||||
auth:
|
||||
enabled: true
|
||||
whitelist:
|
||||
- /api/auth/login
|
||||
- /api/auth/refresh
|
||||
- /actuator/**
|
||||
Reference in New Issue
Block a user