traefik/pkg/api/testdata/getrawdata.json
2019-07-01 11:30:05 +02:00

102 lines
No EOL
1.6 KiB
JSON

{
"routers": {
"bar@myprovider": {
"entryPoints": [
"web"
],
"middlewares": [
"auth",
"addPrefixTest@anotherprovider"
],
"service": "foo-service@myprovider",
"rule": "Host(`foo.bar`)"
},
"test@myprovider": {
"entryPoints": [
"web"
],
"middlewares": [
"addPrefixTest",
"auth"
],
"service": "foo-service@myprovider",
"rule": "Host(`foo.bar.other`)"
}
},
"middlewares": {
"addPrefixTest@anotherprovider": {
"addPrefix": {
"prefix": "/toto"
},
"usedBy": [
"bar@myprovider"
]
},
"addPrefixTest@myprovider": {
"addPrefix": {
"prefix": "/titi"
},
"usedBy": [
"test@myprovider"
]
},
"auth@myprovider": {
"basicAuth": {
"users": [
"admin:admin"
]
},
"usedBy": [
"bar@myprovider",
"test@myprovider"
]
}
},
"services": {
"foo-service@myprovider": {
"loadBalancer": {
"servers": [
{
"url": "http://127.0.0.1"
}
],
"passHostHeader": false
},
"usedBy": [
"bar@myprovider",
"test@myprovider"
]
}
},
"tcpRouters": {
"tcpbar@myprovider": {
"entryPoints": [
"web"
],
"service": "tcpfoo-service@myprovider",
"rule": "HostSNI(`foo.bar`)"
},
"tcptest@myprovider": {
"entryPoints": [
"web"
],
"service": "tcpfoo-service@myprovider",
"rule": "HostSNI(`foo.bar.other`)"
}
},
"tcpServices": {
"tcpfoo-service@myprovider": {
"loadBalancer": {
"servers": [
{
"address": "127.0.0.1"
}
]
},
"usedBy": [
"tcpbar@myprovider",
"tcptest@myprovider"
]
}
}
}