gpt4 book ai didi

asp.net-core - 用于 asp.net 核心应用程序的 ngrok 和 https 隧道

转载 作者:行者123 更新时间:2023-12-03 09:45:01 25 4
gpt4 key购买 nike

从 Visual Studio 启动的 ASP.NET CORE 应用程序的地址为 https://localhost:44313/ .
要测试性能,您需要创建一个隧道。我使用 ngrok 和命令:

ngrok http -host-header=localhost 44313

但这不适用于 https。

任何人都可以分享一个工作示例吗?

最佳答案

  • 下载当前版本的 ngrok
  • 注册并获取 token :https://dashboard.ngrok.com/auth
  • 运行 ngrok 并使用以下命令设置 token : ngrok 身份验证 token YOUR_AUTHTOKEN
  • 创建隧道:
    ngrok http -host-header=localhost https://localhost:44313

  • 2019 年 4 月 11 日更新

    关于asp.net-core - 用于 asp.net 核心应用程序的 ngrok 和 https 隧道,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54800512/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com