Comments (4)
一般来说公司的ip 是可以固定的吧?真的没办法固定下来吗?
非固定 ip 会有很多风险,这也是为什么微信要求这么做,是有道理的。
不建议你想办法去绕过这个,除非你的服务器确实觉得没有任何风险。
from wxjava.
老板觉得数据不安全,所以服务部署在公司机房,通过FRP配置的内网穿透;
又不是专线,所以IP不是固定的;
这种情况真的没办法解决吗?
from wxjava.
只代理一个接口有些费劲,目前貌似只暴露了修改基础url的方法,有用过企业微信通过frp
来代理全部接口是可以的,以企业微信为例:
1、在配置中 configStorage.setBaseApiUrl(‘xxx阿里云的地址url’);
,这样所有请求的api
都会走这个代理地址。
2、在阿里云的代理中,在将这个请求转发到企业微信接口中,就相关于用的阿里云的ip
来请求接口,用的是caddy
配置如下,nginx
同理:
xxx阿里云.com:80, xxx阿里云.com:443 {
handle_path /qyapi/* {
reverse_proxy https://qyapi.weixin.qq.com {
header_up Host {upstream_hostport}
}
}
}
没有测试过微信公众号,但感觉应该也是差不多的原理配置。
from wxjava.
实现方案如下:
阿里云openresty配置接口XXXX, 转发到lua脚本请求腾讯后台,本地定期请求该XXXX接口接口
from wxjava.
Related Issues (20)
- 服务端 转发客服消息 无效
- 🐛 视频号线索[获取留资信息详情]接口,新版本返回更多详细字段,需兼容新版本
- 希望增加商家转账到零钱 解析回调功能
- 开放平台部分url失效 HOT 1
- 生成大量临时文件没有删除占用空间 HOT 1
- 微信公众号,素材上传经过Java写的代理服务器出现:the request was rejected because no multipart boundary was found HOT 2
- 请接入小程序推广员相关接口 HOT 1
- 增加微信支付-请求补差相关API HOT 1
- 希望优化一下代码 HOT 2
- 投诉通知验签错误 HOT 1
- 没找到小程序备案的接口,自己根据楼主的风格,手搓了一份 HOT 2
- com.thoughtworks.xstream.security.ForbiddenClassException HOT 1
- 视频号订单缺失属性AddressInfo.hash_code
- 【feature】获取汇报记录详情
- 微信支付多商户号问题
- WxChannel 视频号板块 没有分享员绑定接口通知 HOT 1
- markdown
- MP_微信消息路由器,异步出路,收不到回复的消息 HOT 4
- 使用 MybatisPlus 多租户插件疑问 HOT 1
- 微信小程序用户信息解密方法不返回openid吗 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wxjava.