Skip to content

Commit

Permalink
fix: fix route priority (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyoct authored Jul 4, 2022
1 parent 8bfc250 commit 9ad2c58
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ export function initBaseRoute() {
function initSystemClientRoute() {
let data = {
name: 'system-client',
uris: ['/'],
uris: ['/*'],
hosts: [Config.SYS_CLIENT_HOST],
upstream: {
type: 'roundrobin',
nodes: {'system-client:8080': 1}
},
priority: 0,
timeout: {
connect: 600,
send: 600,
Expand All @@ -47,6 +48,7 @@ function initAppConsoleRoute() {
send: 600,
read: 600,
},
priority: 9,
plugins: {
'proxy-rewrite': {
regex_uri: ["^/app-console/(.*)", "/$1"]
Expand All @@ -65,6 +67,7 @@ function initSysApiRoute() {
type: 'roundrobin',
nodes: {'system-server:9000': 1}
},
priority: 9,
timeout: {
connect: 600,
send: 600,
Expand Down

0 comments on commit 9ad2c58

Please sign in to comment.