vegvisir/vegvisir.json.dist

33 lines
820 B
Plaintext
Raw Normal View History

{
"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/",
"routes": [{
2021-11-06 01:49:26 +01:00
"pattern": "archive/([0-9]*)",
"target": "archive/$1"
},{
2021-11-06 01:49:26 +01:00
"pattern": "(.*)",
"target": "new/$1"
}]
},
"article-app": {
2021-11-06 01:49:26 +01:00
"prefixUrl": "article/",
"backendAddress": "http://172.17.0.1:3030/api/articles/",
"routes": [{
2021-11-06 01:49:26 +01:00
"pattern": "(.*)",
"target": "$1"
}]
}
2021-11-06 01:49:26 +01:00
},
"cache": {
"ttl": 300,
"route_ttl": 300,
"response_ttl": 300,
"headers_ttl": 300
}
}