Skip to content

Commit 8b785bc

Browse files
feat: update ocelot configuration to use HTTP scheme and change downstream port
1 parent fd2509e commit 8b785bc

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

Applications/Proxy/Source/ocelot.json

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
{
2-
"GlobalConfiguration": {
3-
"DownstreamScheme": "https",
4-
"DownstreamHostAndPorts": [
5-
{
6-
"Host": "localhost",
7-
"Port": 8080
8-
}
9-
]
10-
},
112
"Routes": [
123
{
4+
"UpstreamHttpMethod": [ "POST" ],
135
"UpstreamPathTemplate": "/api/v1/identity/authenticate",
146
"DownstreamPathTemplate": "/api/v1/identity/authenticate",
15-
"UpstreamHttpMethod": [
16-
"POST"
7+
"DownstreamScheme": "http",
8+
"DownstreamHostAndPorts": [
9+
{
10+
"Host": "localhost",
11+
"Port": 5286
12+
}
1713
],
1814
"RateLimitOptions": {
15+
"ClientIdHeader": "Client",
1916
"EnableRateLimiting": true,
2017
"Period": "1s",
2118
"Limit": 5

0 commit comments

Comments
 (0)