-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathgateway-service.yml
68 lines (60 loc) · 1.52 KB
/
gateway-service.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# EMBEDDED SERVER CONFIGURATION
server:
port: ${port:8090}
spring:
aop:
proxyTargetClass: true
# EUREKA
eureka:
client:
registerWithEureka: true
fetchRegistry: true
# ZULL
zuul:
routes:
auth-service:
sensitiveHeaders:
path: /oauth/**
stripPrefix: false
# ai-service should be moved to path other than /
api-service:
sensitiveHeaders:
path: /api/**
stripPrefix: true
add-proxy-headers: true
#SECURITY
security:
basic:
enabled: false
oauth2:
sso:
loginPath: /login
resource:
jwt:
keyValue: |
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnGp/Q5lh0P8nPL21oMMrt2RrkT9AW5jgYwLfSUnJVc9G6uR3cXRRDCjHqWU5WYwivcF180A6CWp/ireQFFBNowgc5XaA0kPpzEtgsA5YsNX7iSnUibB004iBTfU9hZ2Rbsc8cWqynT0RyN4TP1RYVSeVKvMQk4GT1r7JCEC+TNu1ELmbNwMQyzKjsfBXyIOCFU/E94ktvsTZUHF4Oq44DBylCDsS1k7/sfZC2G5EU7Oz0mhG8+Uz6MSEQHtoIi6mc8u64Rwi3Z3tscuWG2ShtsUFuNSAFNkY7LkLn+/hxLCu2bNISMaESa8dG22CIMuIeRLVcAmEWEWH5EEforTg+QIDAQAB
-----END PUBLIC KEY-----
id: openid
serviceId: ${PREFIX:}resource
# LOGGING
#logging.level.org.springframework.security: DEBUG
---
spring:
profiles: docker
# EUREKA
eureka:
client:
serviceUrl:
defaultZone: http://discovery-service:8081/eureka/
---
spring:
profiles: standalone
# EUREKA
eureka:
instance:
hostname: localhost
port: 8081
client:
serviceUrl:
defaultZone: http://${eureka.instance.hostname}:${eureka.instance.port}/eureka/