-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgateway.yaml
51 lines (51 loc) · 1.08 KB
/
gateway.yaml
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
gateway:
#启动端口
port: 80
codeUrl: /open/code
loginUrl: /open/login
loginApi: http://localhost:8080/login
#token 密钥
tokenSecret: "GateWay!^*"
# token 过期时间 默认2小时45分钟
tokenExpire: 2h45m
#路由的深度 /a 深度为1 /a/b 深度为2
routeDepth: 1
# 服务列表
service:
ishubei:
urls: ["http://ddns.ishubei.com:10088"]
api:
urls: ["http://ddns.ishubei.com:18080"]
nd:
urls: ["http://127.0.0.1:8080"]
#域名路由
hostRouter:
- host: pan.gateway.com
service: ishubei
- host: api.gateway.com
service: api
# url 前缀路由
prefixRoute:
- path: /app
stripPrefix: false
service: ishubei
- path: /
stripPrefix: true
service: ishubei
- path: /static
stripPrefix: true
service: ishubei
- path: /plugins
stripPrefix: true
service: ishubei
- path: /index.php
stripPrefix: true
service: ishubei
- path: /nd
stripPrefix: false
service: nd
#白名单
whiteList:
- /app.*
- /static.*
- /.*