Skip to content

Commit 352d2a3

Browse files
committed
feat(deply): Update cosec-gateway-config.yaml
1 parent 483dceb commit 352d2a3

File tree

1 file changed

+53
-1
lines changed

1 file changed

+53
-1
lines changed

Diff for: k8s/cosec-gateway-config.yaml

+53-1
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,62 @@ data:
1010
application:
1111
name: ${service.name:cosec-gateway}
1212
application.yaml: |-
13+
management:
14+
endpoint:
15+
health:
16+
show-details: always
17+
1318
server:
19+
port: 8080
1420
error:
1521
whitelabel:
1622
enabled: false
23+
spring:
24+
cloud:
25+
gateway:
26+
httpclient:
27+
pool:
28+
max-idle-time: 60S
29+
globalcors:
30+
corsConfigurations:
31+
'[/**]':
32+
allowedOrigins: "*"
33+
allowedMethods: "*"
34+
allowedHeaders: "*"
35+
maxAge: 1800000
36+
default-filters:
37+
- DedupeResponseHeader=Access-Control-Allow-Credentials Access-Control-Allow-Origin
38+
routes:
39+
- id: iam-service
40+
uri: http://iam-service
41+
predicates:
42+
- Path=/iam/**
43+
filters:
44+
- StripPrefix=1
45+
46+
47+
cosid:
48+
namespace: ${spring.application.name}
49+
machine:
50+
enabled: true
51+
distributor:
52+
type: redis
53+
generator:
54+
enabled: true
55+
namespace: saas
56+
1757
cosec:
1858
authentication:
19-
enabled: false
59+
enabled: false
60+
jwt:
61+
algorithm: hmac256
62+
secret: ouoD7zTMwBqY5d5BKowOKz9__Q6z9__Q
63+
ip2region:
64+
enabled: false
65+
authorization:
66+
cache:
67+
key-prefix: saas
68+
logging:
69+
level:
70+
root: info
71+
me.ahoo.cosec.authorization.SimpleAuthorization: debug

0 commit comments

Comments
 (0)