Ocelot 微网关托管在 IIS 中

问题描述

嗨,我正在尝试为我们对开发人员的实验测试实施 ocelot。 这是我想通过 ocelot 到达的 api 端点。两个项目都使用 443 端口。 但是一直收到 502 错误的网关。

端点 => https://localhost/document/api/v1/Documents/XYZ

@H_502_4@ "ReRoutes": [ { "DownstreamPathTemplate": "/document/api/v1/Documents/{name}","DownstreamScheme": "https","DownstreamHostAndPorts": [ { "Host": "localhost","Port": 443 } ],"UpstreamPathTemplate": "/apigateway/{name}/document","UpstreamHttpMethod": [ "Post" ],"Priority": 0 }

],“全局配置”:{ "BaseUrl": "https://localhost:443" } }

微网关别名 =>"apigateway" Api别名=>“文档”

此外,我能够在visiual studio 上进行调试,但是每当我在本地 IIS 上托管这两个应用程序时,都会收到 502 错误网关

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)