ngrok

How do use ngrok in conjunction with Google Oauth?

风格不统一 提交于 2019-12-01 15:02:05
问题 I recently installed Ngrok in order to test my localhost meteor App on my phone. I am successful in accessing the meteor app via a tunnel by ngrok. However when I try to login using I get this error message: The login process shows the following error message: 400. That’s an error. Error: redirect_uri_mismatch Application: AppName You can email the developer of this application at: my@emailadress.com The redirect URI in the request, http://localhost:7123/_oauth/google, does not match the ones

ngrok not working correctly to test HTTPs

六月ゝ 毕业季﹏ 提交于 2019-12-01 10:41:52
I downloaded ngrok so i can test my site for http and https requests (if someone is trying to get in my site specific url and it will be a simple http request, i will deny it), first, my localhost is working in 8080 port I start ngrok, it gives me the following: both at the same port, it's a problem i think, because if i do such simple route configuration in laravel: Route::filter('force.ssl', function() { if( ! Request::secure()) { return 'unsecured'; } }); and i have this route: Route::get('survey/payment/secured', array('before' => 'force.ssl', function(){ return 'secured!'; })); and i do

ngrok not working correctly to test HTTPs

柔情痞子 提交于 2019-12-01 09:43:14
问题 I downloaded ngrok so i can test my site for http and https requests (if someone is trying to get in my site specific url and it will be a simple http request, i will deny it), first, my localhost is working in 8080 port I start ngrok, it gives me the following: both at the same port, it's a problem i think, because if i do such simple route configuration in laravel: Route::filter('force.ssl', function() { if( ! Request::secure()) { return 'unsecured'; } }); and i have this route: Route::get(

net::ERR_CONNECTION_REFUSED解决办法

瘦欲@ 提交于 2019-12-01 02:40:58
最近想把自己的项目通过 ngrok 挂到网上,但是发现一个问题,本来在自己的电脑上运行一切正常的程序,把链接发给别人之后,就报”net::ERR_CONNECTION_REFUSED”错误,百思不得解,本以为是ngrok的原因,后来发现用这个链接在自己电脑上打开完全正常,于是开始搜索原因,总结大致有如下几种情况: 1. 网页有插件 ,例如adblock等,可以禁止这些插件之后尝试,也可以”Ctrl+Shift+N”进入隐身模式; 2. 找不到资源,url是错误的 ,比如我机器上在配置文件中把ctxStatic 配置为 http://localhost:8080/morning/static ,然后通过ngrok把链接发给别人,他们在访问的时候就会从他们的机器寻找这个路径,自然就会报这个错误,解决办法:1,改为本机ip;2,改为${pageContext.request.contextPath}/static。 来源: CSDN 作者: zhenyushao 链接: https://blog.csdn.net/zhenyushao/article/details/54972306

Appengine - Local dev server with https

◇◆丶佛笑我妖孽 提交于 2019-11-30 20:33:53
Goal: Reduce dev - feedback cycle by using App Engine dev server. For my use this must be available as a public HTTPS address. App Engine dev server only supports HTTP. How to do this: Use ngrok to expose local dev environment as https publically available address. Reverse proxy with nginx from https to http. This seems possible, but for life of me I haven't got the config working. I'm working with App Engine Standard Java on osx. Other working solutions or ideas are welcome. Surely there is a way to do this. I use NGINX as proxy with self signed certificate for my project https://debtstracker

基于小米球(Ngrok)实现内网穿透

你离开我真会死。 提交于 2019-11-30 18:06:40
一、前言 在公司部署了一套大数据集群。为了方便测试。所以需要弄个内网穿透实现在家里访问公司内部网络,但是不想付费。所以整了个免费的内网穿透工具。 二、准备 1. 注册一个 小毛球账号 ,获取免费的Token 2. 在后台首页下载对应版本客户端 3. 将下载的压缩文件解压后将以下两个文件上传到服务器上 三、修改ngrok.conf配置 属性名 解释 协议类型 auth_token 换成注册从后获取的Token 50070 通道名,在启动的时候指定 subdomain 外网访问的域名前缀 http 内网需要映射的端口地址 HTTP tcp 内网需要映射的端口地址 TCP server_addr: "ngrok2.xiaomiqiu.cn:5432" trust_host_root_certs: true inspect_addr: disabled auth_token: bb2A3f7Z56Af44fcA764989b32e976d3 tunnels: 50070: subdomain: master-50070 proto: http: 127.0.0.1:50070 8088: subdomain: master-8088 proto: http: 127.0.0.1:8080 16010: subdomain: master-16010 proto: http: 127.0.0

微信开发本地内网穿透调试方法

て烟熏妆下的殇ゞ 提交于 2019-11-30 12:00:17
简介 由于微信浏览器中获取用户信息的回调地址必须是已经ICP备案的域名。这样就导致无法本地开发比较麻烦,解决方案为内网穿透,如ngrok(二级域名每次启动会变化)、花生壳(需要支付8元)、NATAPP(和ngrok类似,本文使用)。 本程序基于微信开发者工具完成调试 NATAPP使用 注册NATAPP并实名认证 购买隧道 - 免费隧道 - Web(端口80)- 购买之后可在我的隧道中查看 - 复制 authtoken 下载NATAPP客户端 natapp.exe 在客户端根目录cmd运行 natapp -authtoken=上文提到的authtoken 。命令行会出现类似 Forwarding http://smalle.natappfree.cc -> 127.0.0.1:80 的显示。(表示访问在浏览器中访问http://smalle.natappfree.cc时相当于本地访问127.0.0.1:80) 或者写入xxx.bat文件快速启动: D:/software/natapp.exe -authtoken=12347dc3f25a1234 启动本地web项目 本地项目是基于nginx反向代理服务器实现(apache也可) 下载nginx并安装,配置 nginx.conf 文件,如: server { listen 80; server_name localhost;

ngrok的使用(超详细)

情到浓时终转凉″ 提交于 2019-11-30 07:30:30
1、ngrok简介 百度百科:ngrok 是一个反向代理,通过在公共的端点和本地运行的 Web 服务器之间建立一个安全的通道。ngrok 可捕获和分析所有通道上的流量,便于后期分析和重放. 对于前端的我来说,这丫的讲的啥玩意... 其实说白了就是你写一个项目,在PC上完美运行,想在手机端访问,只能让手机电脑处于同一局域网内,但是这个技术可以把你的本地IP和端口(例如:localhost:8080)转换为www.baidu.com一样的万网,这样,即使电脑与手机不是在同一局域网内也可以无缝访问,(厉害吧!)。 很早我就想了解有没有这种技术,因为有时候写完项目了,感觉挺漂亮的,想让朋友看看,一直发愁怎么变成网址,(别跟我说转二维码),今天无意间在网上看到这种技术,搞了一下午,终于被我弄好了。废话不多说,直接进入正题。 2、版本简介 注意:使用前最好将防火墙关闭 软件:ngrox 可以选择三个版本: ngrox国际版(就在官网下就行) ngrox 国内版 小米球ngrok(我感觉最好用的) 2.1ngrox国际版简介 ngrox官网服务器在国外,官网链接: https://dashboard.ngrok.com/get-started 进去注册一个账户,我直接用GitHub账户登陆的,注册之后登录显示如下: 从图片上可以看出,想要运行使用,得经过四个步骤: 第一步:下载 第二步

通过SSH反向代理连接学校内网服务器

Deadly 提交于 2019-11-30 07:05:54
问题的来源 从老师那里借了两台服务器跑数据,但是老师的服务器没有公网ip,只有学校内网ip,故只能在实验室或者图书馆登录。有没有什么办法,能让我在宿舍或者家里,远程连接进这两台学校内网的服务器呢?答案肯定的,那就是 反向代理 。前提是,我得有一台有公网ip的服务器(例如,阿里云服务器或VPS都可以)。 什么是代理? 要搞清楚什么是反向代理,就得知道什么是 代理(Proxy) 。代理其实就是一个跳板。比如我要去图书馆借一本书,我把要借的书的信息写在纸上,交给图书馆管理员,由图书馆管理员去仓库帮我把书取出来交给我。那我们就说,图书馆管理员是我的代理。 在计算机网络中,代理分为 正向代理 和 反向代理 。 正向代理 假如我们访问不了某网站,但是代理服务器可以访问,我们可以让代理服务器去帮助我们访问目标网站,并把结果返回给我们。对于远程目标网站来说,它只得到了一次请求记录,并不知道是我们通过代理服务器访问的,因此正向代理隐藏了我们自身的信息,但也取决于代理服务器告不告诉目标网站。对于我们客户端来说,我自己是知道我使用了代理去访问某个网站的。 总的来说,正向代理是一个位于客户端(client)和原始服务器(origin server)之间的服务器(proxy server)。客户端为了从原始服务器取得内容,向代理发送一个请求并指定目标(原始服务器)

Appengine - Local dev server with https

安稳与你 提交于 2019-11-30 04:43:48
问题 Goal: Reduce dev - feedback cycle by using App Engine dev server. For my use this must be available as a public HTTPS address. App Engine dev server only supports HTTP. How to do this: Use ngrok to expose local dev environment as https publically available address. Reverse proxy with nginx from https to http. This seems possible, but for life of me I haven't got the config working. I'm working with App Engine Standard Java on osx. Other working solutions or ideas are welcome. Surely there is