vegvisir/vegvisir.json.dist

37 lines
910 B
Plaintext
Raw Normal View History

{
"server": {
"address": "127.0.0.1",
"port": 8080
},
"backends": {
"news-app": {
2021-08-03 00:13:14 +02:00
"prefixURL": "news/",
2021-11-10 01:36:33 +01:00
"backendAddress": "http://172.17.0.1:3030/api/news",
"routes": [{
2021-11-10 01:36:33 +01:00
"pattern": "archive/([0-9]*)",
"target": "archive/$1"
},{
2021-11-10 01:36:33 +01:00
"pattern": "(.*)",
"target": "new/$1"
}]
},
"article-app": {
2021-08-03 00:13:14 +02:00
"prefixURL": "art/",
2021-11-10 01:36:33 +01:00
"backendAddress": "http://172.17.0.1:3030/api/articles",
"routes": [{
2021-11-10 01:36:33 +01:00
"pattern": "(.*)",
"target": "$1"
}]
}
},
"cache": {
"type": "redis",
"host": "localhost",
"port": 6379,
"username": "",
"password": "",
"database": "0",
2021-11-10 01:36:33 +01:00
"routeTTL": 10,
"responseTTL": 5
}
}