2020-12-03 14:52:05 +00:00
|
|
|
{
|
|
|
|
"http": {
|
|
|
|
"routers": {
|
|
|
|
"foo": {
|
|
|
|
"entryPoints": [
|
|
|
|
"foo"
|
|
|
|
],
|
|
|
|
"middlewares": [
|
|
|
|
"foo"
|
|
|
|
],
|
|
|
|
"service": "foo",
|
2022-01-24 10:08:05 +00:00
|
|
|
"rule": "foo",
|
2020-12-03 14:52:05 +00:00
|
|
|
"priority": 42,
|
|
|
|
"tls": {
|
|
|
|
"options": "foo",
|
|
|
|
"certResolver": "foo",
|
|
|
|
"domains": [
|
|
|
|
{
|
2022-01-24 10:08:05 +00:00
|
|
|
"main": "foo",
|
2020-12-03 14:52:05 +00:00
|
|
|
"sans": [
|
2022-01-24 10:08:05 +00:00
|
|
|
"foo"
|
2020-12-03 14:52:05 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"services": {
|
|
|
|
"bar": {
|
|
|
|
"weighted": {
|
|
|
|
"services": [
|
|
|
|
{
|
|
|
|
"name": "foo",
|
|
|
|
"weight": 42
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"sticky": {
|
|
|
|
"cookie": {
|
|
|
|
"name": "foo",
|
|
|
|
"secure": true,
|
|
|
|
"httpOnly": true,
|
|
|
|
"sameSite": "foo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"baz": {
|
|
|
|
"mirroring": {
|
|
|
|
"service": "foo",
|
|
|
|
"maxBodySize": 42,
|
|
|
|
"mirrors": [
|
|
|
|
{
|
|
|
|
"name": "foo",
|
|
|
|
"percent": 42
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"foo": {
|
|
|
|
"loadBalancer": {
|
|
|
|
"sticky": {
|
|
|
|
"cookie": {
|
|
|
|
"name": "foo",
|
|
|
|
"secure": true,
|
|
|
|
"httpOnly": true,
|
|
|
|
"sameSite": "foo"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"servers": [
|
|
|
|
{
|
2022-01-24 10:08:05 +00:00
|
|
|
"url": "http://127.0.0.1:8080"
|
2020-12-03 14:52:05 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"healthCheck": {
|
|
|
|
"scheme": "foo",
|
|
|
|
"path": "foo",
|
|
|
|
"port": 42,
|
2022-11-16 10:38:07 +00:00
|
|
|
"interval": "1m51s",
|
|
|
|
"timeout": "1m51s",
|
2022-01-24 10:08:05 +00:00
|
|
|
"hostname": "foo",
|
2020-12-03 14:52:05 +00:00
|
|
|
"followRedirects": true,
|
|
|
|
"headers": {
|
|
|
|
"foo": "bar"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"passHostHeader": true,
|
|
|
|
"responseForwarding": {
|
2022-11-16 10:38:07 +00:00
|
|
|
"flushInterval": "1m51s"
|
2020-12-03 14:52:05 +00:00
|
|
|
},
|
|
|
|
"serversTransport": "foo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"middlewares": {
|
|
|
|
"foo": {
|
|
|
|
"addPrefix": {
|
|
|
|
"prefix": "foo"
|
|
|
|
},
|
|
|
|
"stripPrefix": {
|
|
|
|
"prefixes": [
|
|
|
|
"foo"
|
2022-11-25 09:50:06 +00:00
|
|
|
]
|
2020-12-03 14:52:05 +00:00
|
|
|
},
|
|
|
|
"stripPrefixRegex": {
|
|
|
|
"regex": [
|
|
|
|
"foo"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"replacePath": {
|
|
|
|
"path": "foo"
|
|
|
|
},
|
|
|
|
"replacePathRegex": {
|
|
|
|
"regex": "foo",
|
|
|
|
"replacement": "foo"
|
|
|
|
},
|
|
|
|
"chain": {
|
|
|
|
"middlewares": [
|
|
|
|
"foo"
|
|
|
|
]
|
|
|
|
},
|
2022-10-26 15:16:05 +00:00
|
|
|
"ipAllowList": {
|
2020-12-03 14:52:05 +00:00
|
|
|
"sourceRange": [
|
2022-01-24 10:08:05 +00:00
|
|
|
"foo"
|
2020-12-03 14:52:05 +00:00
|
|
|
],
|
|
|
|
"ipStrategy": {
|
|
|
|
"depth": 42,
|
|
|
|
"excludedIPs": [
|
2022-01-24 10:08:05 +00:00
|
|
|
"127.0.0.1"
|
2020-12-03 14:52:05 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"headers": {
|
|
|
|
"customRequestHeaders": {
|
|
|
|
"foo": "bar"
|
|
|
|
},
|
|
|
|
"customResponseHeaders": {
|
|
|
|
"foo": "bar"
|
|
|
|
},
|
|
|
|
"accessControlAllowCredentials": true,
|
|
|
|
"accessControlAllowHeaders": [
|
|
|
|
"foo"
|
|
|
|
],
|
|
|
|
"accessControlAllowMethods": [
|
|
|
|
"foo"
|
|
|
|
],
|
|
|
|
"accessControlAllowOriginList": [
|
2022-01-24 10:08:05 +00:00
|
|
|
"foo"
|
2020-12-03 14:52:05 +00:00
|
|
|
],
|
|
|
|
"accessControlAllowOriginListRegex": [
|
2022-01-24 10:08:05 +00:00
|
|
|
"foo"
|
2020-12-03 14:52:05 +00:00
|
|
|
],
|
|
|
|
"accessControlExposeHeaders": [
|
|
|
|
"foo"
|
|
|
|
],
|
|
|
|
"accessControlMaxAge": 42,
|
|
|
|
"addVaryHeader": true,
|
|
|
|
"allowedHosts": [
|
2022-01-24 10:08:05 +00:00
|
|
|
"foo"
|
2020-12-03 14:52:05 +00:00
|
|
|
],
|
|
|
|
"hostsProxyHeaders": [
|
|
|
|
"foo"
|
|
|
|
],
|
2022-01-24 10:08:05 +00:00
|
|
|
"sslProxyHeaders": {
|
|
|
|
"foo": "bar"
|
|
|
|
},
|
2020-12-03 14:52:05 +00:00
|
|
|
"stsSeconds": 42,
|
|
|
|
"stsIncludeSubdomains": true,
|
|
|
|
"stsPreload": true,
|
|
|
|
"forceSTSHeader": true,
|
|
|
|
"frameDeny": true,
|
2022-01-24 10:08:05 +00:00
|
|
|
"customFrameOptionsValue": "foo",
|
2020-12-03 14:52:05 +00:00
|
|
|
"contentTypeNosniff": true,
|
|
|
|
"browserXssFilter": true,
|
2022-01-24 10:08:05 +00:00
|
|
|
"customBrowserXSSValue": "foo",
|
|
|
|
"contentSecurityPolicy": "foo",
|
|
|
|
"publicKey": "foo",
|
2020-12-03 14:52:05 +00:00
|
|
|
"referrerPolicy": "foo",
|
2021-06-21 13:16:13 +00:00
|
|
|
"permissionsPolicy": "foo",
|
2020-12-03 14:52:05 +00:00
|
|
|
"isDevelopment": true
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"status": [
|
|
|
|
"foo"
|
|
|
|
],
|
|
|
|
"service": "foo",
|
|
|
|
"query": "foo"
|
|
|
|
},
|
|
|
|
"rateLimit": {
|
|
|
|
"average": 42,
|
2021-05-06 07:32:04 +00:00
|
|
|
"period": "42ns",
|
2020-12-03 14:52:05 +00:00
|
|
|
"burst": 42,
|
|
|
|
"sourceCriterion": {
|
|
|
|
"ipStrategy": {
|
|
|
|
"depth": 42,
|
|
|
|
"excludedIPs": [
|
2022-01-24 10:08:05 +00:00
|
|
|
"127.0.0.1"
|
2020-12-03 14:52:05 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"requestHeaderName": "foo",
|
|
|
|
"requestHost": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"redirectRegex": {
|
2022-01-24 10:08:05 +00:00
|
|
|
"regex": "foo",
|
|
|
|
"replacement": "foo",
|
2020-12-03 14:52:05 +00:00
|
|
|
"permanent": true
|
|
|
|
},
|
|
|
|
"redirectScheme": {
|
|
|
|
"scheme": "foo",
|
|
|
|
"port": "foo",
|
|
|
|
"permanent": true
|
|
|
|
},
|
|
|
|
"basicAuth": {
|
|
|
|
"users": [
|
|
|
|
"xxxx"
|
|
|
|
],
|
2022-01-24 10:08:05 +00:00
|
|
|
"usersFile": "foo",
|
|
|
|
"realm": "foo",
|
2020-12-03 14:52:05 +00:00
|
|
|
"removeHeader": true,
|
|
|
|
"headerField": "foo"
|
|
|
|
},
|
|
|
|
"digestAuth": {
|
|
|
|
"users": [
|
|
|
|
"xxxx"
|
|
|
|
],
|
2022-01-24 10:08:05 +00:00
|
|
|
"usersFile": "foo",
|
2020-12-03 14:52:05 +00:00
|
|
|
"removeHeader": true,
|
2022-01-24 10:08:05 +00:00
|
|
|
"realm": "foo",
|
2020-12-03 14:52:05 +00:00
|
|
|
"headerField": "foo"
|
|
|
|
},
|
|
|
|
"forwardAuth": {
|
2022-01-24 10:08:05 +00:00
|
|
|
"address": "127.0.0.1",
|
2020-12-03 14:52:05 +00:00
|
|
|
"tls": {
|
2022-01-24 10:08:05 +00:00
|
|
|
"ca": "ca.pem",
|
|
|
|
"cert": "cert.pem",
|
2020-12-03 14:52:05 +00:00
|
|
|
"key": "xxxx",
|
|
|
|
"insecureSkipVerify": true
|
|
|
|
},
|
|
|
|
"trustForwardHeader": true,
|
|
|
|
"authResponseHeaders": [
|
|
|
|
"foo"
|
|
|
|
],
|
|
|
|
"authResponseHeadersRegex": "foo",
|
|
|
|
"authRequestHeaders": [
|
|
|
|
"foo"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"inFlightReq": {
|
|
|
|
"amount": 42,
|
|
|
|
"sourceCriterion": {
|
|
|
|
"ipStrategy": {
|
|
|
|
"depth": 42,
|
|
|
|
"excludedIPs": [
|
2022-01-24 10:08:05 +00:00
|
|
|
"127.0.0.1"
|
2020-12-03 14:52:05 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"requestHeaderName": "foo",
|
|
|
|
"requestHost": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"buffering": {
|
|
|
|
"maxRequestBodyBytes": 42,
|
|
|
|
"memRequestBodyBytes": 42,
|
|
|
|
"maxResponseBodyBytes": 42,
|
|
|
|
"memResponseBodyBytes": 42,
|
|
|
|
"retryExpression": "foo"
|
|
|
|
},
|
|
|
|
"circuitBreaker": {
|
|
|
|
"expression": "foo"
|
|
|
|
},
|
|
|
|
"compress": {
|
|
|
|
"excludedContentTypes": [
|
|
|
|
"foo"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"passTLSClientCert": {
|
|
|
|
"pem": true,
|
|
|
|
"info": {
|
|
|
|
"notAfter": true,
|
|
|
|
"notBefore": true,
|
|
|
|
"sans": true,
|
2022-06-24 10:40:08 +00:00
|
|
|
"serialNumber": true,
|
2020-12-03 14:52:05 +00:00
|
|
|
"subject": {
|
|
|
|
"country": true,
|
|
|
|
"province": true,
|
|
|
|
"locality": true,
|
|
|
|
"organization": true,
|
2021-07-28 15:42:09 +00:00
|
|
|
"organizationalUnit": true,
|
2020-12-03 14:52:05 +00:00
|
|
|
"commonName": true,
|
|
|
|
"serialNumber": true,
|
|
|
|
"domainComponent": true
|
|
|
|
},
|
|
|
|
"issuer": {
|
|
|
|
"country": true,
|
|
|
|
"province": true,
|
|
|
|
"locality": true,
|
|
|
|
"organization": true,
|
|
|
|
"commonName": true,
|
|
|
|
"serialNumber": true,
|
|
|
|
"domainComponent": true
|
2022-06-24 10:40:08 +00:00
|
|
|
}
|
2020-12-03 14:52:05 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"retry": {
|
|
|
|
"attempts": 42,
|
2021-05-06 07:32:04 +00:00
|
|
|
"initialInterval": "42ns"
|
2020-12-03 14:52:05 +00:00
|
|
|
},
|
2022-11-29 10:48:05 +00:00
|
|
|
"contentType": {},
|
2020-12-03 14:52:05 +00:00
|
|
|
"plugin": {
|
|
|
|
"foo": {
|
|
|
|
"answer": {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"models": {
|
|
|
|
"foo": {
|
|
|
|
"middlewares": [
|
|
|
|
"foo"
|
|
|
|
],
|
|
|
|
"tls": {
|
|
|
|
"options": "foo",
|
|
|
|
"certResolver": "foo",
|
|
|
|
"domains": [
|
|
|
|
{
|
2022-01-24 10:08:05 +00:00
|
|
|
"main": "foo",
|
2020-12-03 14:52:05 +00:00
|
|
|
"sans": [
|
2022-01-24 10:08:05 +00:00
|
|
|
"foo"
|
2020-12-03 14:52:05 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"serversTransports": {
|
|
|
|
"foo": {
|
2022-01-24 10:08:05 +00:00
|
|
|
"serverName": "foo",
|
2020-12-03 14:52:05 +00:00
|
|
|
"insecureSkipVerify": true,
|
|
|
|
"rootCAs": [
|
2022-01-24 10:08:05 +00:00
|
|
|
"rootca.pem"
|
2020-12-03 14:52:05 +00:00
|
|
|
],
|
|
|
|
"certificates": [
|
|
|
|
{
|
2022-01-24 10:08:05 +00:00
|
|
|
"certFile": "cert.pem",
|
2020-12-03 14:52:05 +00:00
|
|
|
"keyFile": "xxxx"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"maxIdleConnsPerHost": 42,
|
|
|
|
"forwardingTimeouts": {
|
2021-05-06 07:32:04 +00:00
|
|
|
"dialTimeout": "42ns",
|
|
|
|
"responseHeaderTimeout": "42ns",
|
2021-11-09 11:16:08 +00:00
|
|
|
"idleConnTimeout": "42ns",
|
|
|
|
"readIdleTimeout": "42ns",
|
|
|
|
"pingTimeout": "42ns"
|
2020-12-03 14:52:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tcp": {
|
|
|
|
"routers": {
|
|
|
|
"foo": {
|
|
|
|
"entryPoints": [
|
|
|
|
"foo"
|
|
|
|
],
|
|
|
|
"service": "foo",
|
2022-01-24 10:08:05 +00:00
|
|
|
"rule": "foo",
|
2020-12-03 14:52:05 +00:00
|
|
|
"tls": {
|
|
|
|
"passthrough": true,
|
|
|
|
"options": "foo",
|
|
|
|
"certResolver": "foo",
|
|
|
|
"domains": [
|
|
|
|
{
|
2022-01-24 10:08:05 +00:00
|
|
|
"main": "foo",
|
2020-12-03 14:52:05 +00:00
|
|
|
"sans": [
|
2022-01-24 10:08:05 +00:00
|
|
|
"foo"
|
2020-12-03 14:52:05 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"services": {
|
|
|
|
"bar": {
|
|
|
|
"weighted": {
|
|
|
|
"services": [
|
|
|
|
{
|
|
|
|
"name": "foo",
|
|
|
|
"weight": 42
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"foo": {
|
|
|
|
"loadBalancer": {
|
|
|
|
"terminationDelay": 42,
|
|
|
|
"proxyProtocol": {
|
|
|
|
"version": 42
|
|
|
|
},
|
|
|
|
"servers": [
|
|
|
|
{
|
2022-01-24 10:08:05 +00:00
|
|
|
"address": "127.0.0.1:8080"
|
2020-12-03 14:52:05 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"udp": {
|
|
|
|
"routers": {
|
|
|
|
"foo": {
|
|
|
|
"entryPoints": [
|
|
|
|
"foo"
|
|
|
|
],
|
|
|
|
"service": "foo"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"services": {
|
|
|
|
"bar": {
|
|
|
|
"weighted": {
|
|
|
|
"services": [
|
|
|
|
{
|
|
|
|
"name": "foo",
|
|
|
|
"weight": 42
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"foo": {
|
|
|
|
"loadBalancer": {
|
|
|
|
"servers": [
|
|
|
|
{
|
2022-01-24 10:08:05 +00:00
|
|
|
"address": "127.0.0.1:8080"
|
2020-12-03 14:52:05 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tls": {
|
|
|
|
"certificates": [
|
|
|
|
{
|
2022-01-24 10:08:05 +00:00
|
|
|
"certFile": "cert.pem",
|
2020-12-03 14:52:05 +00:00
|
|
|
"keyFile": "xxxx",
|
|
|
|
"stores": [
|
|
|
|
"foo"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"options": {
|
|
|
|
"foo": {
|
|
|
|
"minVersion": "foo",
|
|
|
|
"maxVersion": "foo",
|
|
|
|
"cipherSuites": [
|
|
|
|
"foo"
|
|
|
|
],
|
|
|
|
"curvePreferences": [
|
|
|
|
"foo"
|
|
|
|
],
|
2022-01-24 10:08:05 +00:00
|
|
|
"clientAuth": {
|
|
|
|
"caFiles": [
|
|
|
|
"ca.pem"
|
|
|
|
],
|
|
|
|
"clientAuthType": "RequireAndVerifyClientCert"
|
|
|
|
},
|
2022-08-09 15:36:08 +00:00
|
|
|
"sniStrict": true
|
2020-12-03 14:52:05 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"stores": {
|
|
|
|
"foo": {
|
|
|
|
"defaultCertificate": {
|
2022-01-24 10:08:05 +00:00
|
|
|
"certFile": "cert.pem",
|
2020-12-03 14:52:05 +00:00
|
|
|
"keyFile": "xxxx"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-10-26 15:16:05 +00:00
|
|
|
}
|