2021-07-23 16:04:54 +02:00
|
|
|
{
|
|
|
|
"server": {
|
|
|
|
"address": "127.0.0.1",
|
|
|
|
"port": 8080
|
|
|
|
},
|
|
|
|
"backends": {
|
|
|
|
"news-app": {
|
|
|
|
"prefixUrl": "news/",
|
2021-11-06 01:49:26 +01:00
|
|
|
"backendAddress": "http://172.17.0.1:3030/api/news/",
|
2021-07-23 16:04:54 +02:00
|
|
|
"routes": [{
|
2021-11-06 01:49:26 +01:00
|
|
|
"pattern": "archive/([0-9]*)",
|
|
|
|
"target": "archive/$1"
|
2021-07-23 16:04:54 +02:00
|
|
|
},{
|
2021-11-06 01:49:26 +01:00
|
|
|
"pattern": "(.*)",
|
|
|
|
"target": "new/$1"
|
2021-07-23 16:04:54 +02:00
|
|
|
}]
|
|
|
|
},
|
|
|
|
"article-app": {
|
2021-11-06 01:49:26 +01:00
|
|
|
"prefixUrl": "article/",
|
|
|
|
"backendAddress": "http://172.17.0.1:3030/api/articles/",
|
2021-07-23 16:04:54 +02:00
|
|
|
"routes": [{
|
2021-11-06 01:49:26 +01:00
|
|
|
"pattern": "(.*)",
|
|
|
|
"target": "$1"
|
2021-07-23 16:04:54 +02:00
|
|
|
}]
|
|
|
|
}
|
2021-11-06 01:49:26 +01:00
|
|
|
},
|
|
|
|
"cache": {
|
|
|
|
"ttl": 300,
|
|
|
|
"route_ttl": 300,
|
|
|
|
"response_ttl": 300,
|
|
|
|
"headers_ttl": 300
|
2021-07-23 16:04:54 +02:00
|
|
|
}
|
|
|
|
}
|