2021-07-10 23:57:45 +02:00
|
|
|
{
|
|
|
|
"server": {
|
|
|
|
"address": "127.0.0.1",
|
|
|
|
"port": 8080
|
|
|
|
},
|
|
|
|
"backends": {
|
|
|
|
"news-app": {
|
|
|
|
"prefixUrl": "news/",
|
2021-07-23 16:04:54 +02:00
|
|
|
"backendAddress": "http://172.17.0.1:3030",
|
2021-07-10 23:57:45 +02:00
|
|
|
"routes": [{
|
2021-07-23 16:04:54 +02:00
|
|
|
"pattern": "new/(.*)/([0-9]*)",
|
|
|
|
"target": "new-url/$1/$2"
|
|
|
|
},{
|
2021-07-10 23:57:45 +02:00
|
|
|
"pattern": "new/(.*)",
|
|
|
|
"target": "$1"
|
|
|
|
},{
|
|
|
|
"pattern": "(.+)",
|
|
|
|
"target": "url"
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
"article-app": {
|
|
|
|
"prefixUrl": "art/",
|
2021-07-23 16:04:54 +02:00
|
|
|
"backendAddress": "http://172.17.0.1:3030",
|
2021-07-10 23:57:45 +02:00
|
|
|
"routes": [{
|
|
|
|
"pattern": "art1/(.*)",
|
2021-07-23 16:04:54 +02:00
|
|
|
"target": "art-url/$1"
|
2021-07-10 23:57:45 +02:00
|
|
|
},{
|
|
|
|
"pattern": "([a-zA-Z0-9]*)",
|
2021-07-23 16:04:54 +02:00
|
|
|
"target": "art-global/$1"
|
2021-07-10 23:57:45 +02:00
|
|
|
}]
|
|
|
|
}
|
2021-07-23 16:04:54 +02:00
|
|
|
},
|
|
|
|
"cache": {
|
|
|
|
"ttl": 300,
|
|
|
|
"route_ttl": 300,
|
|
|
|
"response_ttl": 300,
|
|
|
|
"headers_ttl": 300
|
2021-07-10 23:57:45 +02:00
|
|
|
}
|
|
|
|
}
|