asp.net核心应用程序的ngrok和https隧道 [英] ngrok and https tunnel for asp.net core application

查看:146
本文介绍了asp.net核心应用程序的ngrok和https隧道的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

The ASP.NET CORE application, when launched from visual studio, has the address https://localhost:44313/. To test the performance you need to make a tunnel. I use ngrok and the command:

ngrok http -host-header = localhost 44313

但这不适用于https.

But this does not work for https.

任何人都可以分享一个有效的例子吗?

Can anyone share a working example?

推荐答案

  1. 下载当前版本的ngrok
  2. 注册并获取令牌: https://dashboard.ngrok.com/auth
  3. 运行ngrok并使用以下命令设置令牌: ngrok authtoken YOUR_AUTHTOKEN
  4. 创建隧道: ngrok http -host-header = localhost https://localhost:44313
  1. Download the current version of ngrok
  2. Register and get a token: https://dashboard.ngrok.com/auth
  3. Run ngrok and set the token with the command: ngrok authtoken YOUR_AUTHTOKEN
  4. Create a tunnel: ngrok http -host-header=localhost https://localhost:44313

更新2019年4月11日

这篇关于asp.net核心应用程序的ngrok和https隧道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆