@@ -7,21 +7,49 @@ spring:
77
88 cloud :
99 gateway :
10+ default-filters :
11+ - RemoveRequestHeader=X-User-Id
12+ - RemoveRequestHeader=X-User-Email
13+ - RemoveRequestHeader=X-User-Role
1014 routes :
11- - id : user-service-public
15+ - id : user-private
1216 uri : http://user-service:8081
1317 predicates :
14- - Path=/v1/users/signup, /v1/users/login
18+ - Path=/v1/users/**
19+ filters :
20+ - AuthenticationFilter
1521
16- - id : user-service-private
22+ - id : auth-public
1723 uri : http://user-service:8081
1824 predicates :
19- - Path=/v1/users/**
25+ - name : Path
26+ args :
27+ patterns :
28+ - /v1/auth/login
29+ - /v1/auth/register
30+ - /v1/auth/token/refresh
31+ - /v1/auth/email-verification/request
32+ - /v1/auth/email-verification
33+ - /v1/auth/password-reset/request
34+ - /v1/auth/password-reset
35+ - /v1/oauth2/callback/*
36+
37+ - id : auth-private
38+ uri : http://user-service:8081
39+ predicates :
40+ - name : Path
41+ args :
42+ patterns :
43+ - /v1/auth/logout
44+ - /v1/auth/password
45+ - /v1/auth/social-links
46+ - /v1/auth/social-links/*
47+ - /v1/oauth2/authorization/*
2048 filters :
2149 - AuthenticationFilter
2250
2351jwt :
24- secret : ${JWT_SECRET:"55ca298dcfc216e215622e3f48a251abaa4e8bb973074f065ab170e311acc15811d01a2407290c3ac143648196306d4a6f666a4ed364d3df633e08eb184bb0aea0f2edde4fd2d7fa68ea95ddbc421ff532ce47bde775975911042d665bc22d88a9fa26a03bb4d25530b8cdeb1247d87c9e3efcd721e368b0566b00a43308a729" }
52+ secret : ${JWT_SECRET}
2553
2654management :
2755 endpoints :
@@ -31,5 +59,4 @@ management:
3159
3260logging :
3361 level :
34- org.springframework.cloud.gateway : DEBUG
35- flipnote.apigateway : DEBUG
62+ flipnote.apigateway : INFO
0 commit comments