diff --git a/ocelot.Development.json b/ocelot.Development.json index c4d4816..17d62be 100644 --- a/ocelot.Development.json +++ b/ocelot.Development.json @@ -98,6 +98,23 @@ "Delete" ] }, + { + "DownstreamPathTemplate": "/api/{route1}/{route2}/{route3}", + "DownstreamScheme": "https", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 7103 + } + ], + "UpstreamPathTemplate": "/api/{route1}/{route2}/{route3}", + "UpstreamhttpsMethod": [ + "Get", + "Post", + "Put", + "Delete" + ] + }, { "DownstreamPathTemplate": "/", "DownstreamScheme": "http", diff --git a/ocelot.json b/ocelot.json index 1127461..17d62be 100644 --- a/ocelot.json +++ b/ocelot.json @@ -2,67 +2,79 @@ "Routes": [ { "DownstreamPathTemplate": "/swagger/{route}", - "DownstreamScheme": "http", + "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", - "Port": 8088 + "Port": 7103 } ], "UpstreamPathTemplate": "/swagger/{route}", - "UpstreamHttpMethod": [ + "UpstreamhttpsMethod": [ "Get" ] }, { - "DownstreamPathTemplate": "/swagger/{route}", - "DownstreamScheme": "http", + "DownstreamPathTemplate": "/swagger/auth/{route}", + "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", - "Port": 9090 + "Port": 7192 } ], "UpstreamPathTemplate": "/swagger/auth/{route}", - "UpstreamHttpMethod": [ + "UpstreamhttpsMethod": [ "Get" ] }, { - "DownstreamPathTemplate": "/api/Auth/work-flow?cookie=false", - "DownstreamScheme": "http", + "DownstreamPathTemplate": "/api/Auth/user-manager?cookie=true", + "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", - "Port": 9090 + "Port": 7192 } ], - "UpstreamPathTemplate": "/api/Auth", - "UpstreamHttpMethod": [ "Post" ] + "UpstreamPathTemplate": "/api/Auth/login", + "UpstreamhttpsMethod": [ "Post" ] }, { "DownstreamPathTemplate": "/api/Auth/check", - "DownstreamScheme": "http", + "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", - "Port": 8088 + "Port": 7103 } ], "UpstreamPathTemplate": "/api/Auth/check", - "UpstreamHttpMethod": [ "Post" ] + "UpstreamhttpsMethod": [ "Get" ] }, { - "DownstreamPathTemplate": "/api/{route}", - "DownstreamScheme": "http", + "DownstreamPathTemplate": "/api/Auth/logout", + "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "localhost", - "Port": 8088 + "Port": 7103 + } + ], + "UpstreamPathTemplate": "/api/Auth/logout", + "UpstreamhttpsMethod": [ "Post" ] + }, + { + "DownstreamPathTemplate": "/api/{route}", + "DownstreamScheme": "https", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 7103 } ], "UpstreamPathTemplate": "/api/{route}", - "UpstreamHttpMethod": [ + "UpstreamhttpsMethod": [ "Get", "Post", "Put", @@ -70,22 +82,91 @@ ] }, { - "DownstreamPathTemplate": "/api/{route}/{id}", + "DownstreamPathTemplate": "/api/{route1}/{route2}", + "DownstreamScheme": "https", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 7103 + } + ], + "UpstreamPathTemplate": "/api/{route1}/{route2}", + "UpstreamhttpsMethod": [ + "Get", + "Post", + "Put", + "Delete" + ] + }, + { + "DownstreamPathTemplate": "/api/{route1}/{route2}/{route3}", + "DownstreamScheme": "https", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 7103 + } + ], + "UpstreamPathTemplate": "/api/{route1}/{route2}/{route3}", + "UpstreamhttpsMethod": [ + "Get", + "Post", + "Put", + "Delete" + ] + }, + { + "DownstreamPathTemplate": "/", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "localhost", - "Port": 8088 + "Port": 4200 } ], - "UpstreamPathTemplate": "/api/{route}{id}", - "UpstreamHttpMethod": [ + "UpstreamPathTemplate": "/", + "UpstreamhttpsMethod": [ "Get", + "Post", + "Put", + "Delete" + ] + }, + { + "DownstreamPathTemplate": "/{route}", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 4200 + } + ], + "UpstreamPathTemplate": "/{route}", + "UpstreamhttpsMethod": [ + "Get", + "Post", + "Put", + "Delete" + ] + }, + { + "DownstreamPathTemplate": "/{route1}/{route2}", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 4200 + } + ], + "UpstreamPathTemplate": "/{route1}/{route2}", + "UpstreamhttpsMethod": [ + "Get", + "Post", + "Put", "Delete" ] } ], "GlobalConfiguration": { - "BaseUrl": "https://localhost:8443" } } \ No newline at end of file