2021-07-23 16:04:54 +02:00
|
|
|
{
|
|
|
|
"server": {
|
|
|
|
"address": "127.0.0.1",
|
|
|
|
"port": 8080
|
|
|
|
},
|
|
|
|
"backends": {
|
|
|
|
"news-app": {
|
2021-08-03 00:13:14 +02:00
|
|
|
"prefixURL": "news/",
|
2021-07-23 16:04:54 +02:00
|
|
|
"backendAddress": "http://127.0.0.1:3030",
|
|
|
|
"routes": [{
|
|
|
|
"pattern": "new/(.*)",
|
|
|
|
"target": "$1"
|
|
|
|
},{
|
|
|
|
"pattern": "new1/(.*)/([0-9]*)",
|
|
|
|
"target": "new-url1/$1/$2"
|
|
|
|
},{
|
|
|
|
"pattern": "(.+)",
|
|
|
|
"target": "url"
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
"article-app": {
|
2021-08-03 00:13:14 +02:00
|
|
|
"prefixURL": "art/",
|
2021-07-23 16:04:54 +02:00
|
|
|
"backendAddress": "http://127.0.0.1:3030",
|
|
|
|
"routes": [{
|
|
|
|
"pattern": "art1/(.*)",
|
|
|
|
"target": "art-url1/$1"
|
|
|
|
},{
|
|
|
|
"pattern": "([a-zA-Z0-9]*)",
|
|
|
|
"target": "article-global/$1"
|
|
|
|
}]
|
|
|
|
}
|
2021-07-25 01:02:35 +02:00
|
|
|
},
|
|
|
|
"cache": {
|
|
|
|
"type": "redis",
|
|
|
|
"host": "localhost",
|
|
|
|
"port": 6379,
|
|
|
|
"username": "",
|
|
|
|
"password": "",
|
|
|
|
"database": "0",
|
2021-08-03 00:13:14 +02:00
|
|
|
"routeTTL": 300,
|
|
|
|
"responseTTL": 300
|
2021-07-23 16:04:54 +02:00
|
|
|
}
|
|
|
|
}
|