vegvisir/vegvisir.json.dist
Piotr Biernat d651571a55
Some checks failed
continuous-integration/drone/push Build is failing
tmp goroutines cache
2021-11-12 20:11:56 +01:00

37 lines
910 B
Plaintext

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