mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 15:18:14 +08:00
merge
This commit is contained in:
@ -1,11 +1,20 @@
|
||||
{
|
||||
"ReRoutes": [
|
||||
{
|
||||
# The url we are forwarding the request to, ocelot will not add a trailing slash
|
||||
"DownstreamTemplate": "http://somehost.com/identityserverexample",
|
||||
# The path we are listening on for this re route, Ocelot will add a trailing slash to
|
||||
# this property. Then when a request is made Ocelot makes sure a trailing slash is added
|
||||
# to that so everything matches
|
||||
# The downstream path we are forwarding the request to, ocelot will not add a trailing slash.
|
||||
# Ocelot replaces any placeholders {etc} with matched values from the incoming request.
|
||||
"DownstreamPathTemplate": "/identityserverexample/{someid}/something",
|
||||
# The scheme you want Ocelot to use when making the downstream request
|
||||
"DownstreamScheme": "https",
|
||||
# The port you want Ocelot to use when making the downstream request, will default to
|
||||
# scheme if nothing set
|
||||
"DownstreamPort": 80,
|
||||
# The host address of the downstream service, should not have a trailing slash or scheme
|
||||
# if there is a trailing slash Ocelot will remove it.
|
||||
"DownstreamHost" "localhost"
|
||||
# The path template we are listening on for this re route, Ocelot will add a trailing
|
||||
# slash to this property. Then when a request is made Ocelot makes sure a trailing
|
||||
# slash is added, so everything matches
|
||||
"UpstreamTemplate": "/identityserverexample",
|
||||
# The method we are listening for on this re route
|
||||
"UpstreamHttpMethod": "Get",
|
||||
|
Reference in New Issue
Block a user