GithubHelp home page GithubHelp logo

Comments (4)

binarywang avatar binarywang commented on June 12, 2024

一般来说公司的ip 是可以固定的吧?真的没办法固定下来吗?
非固定 ip 会有很多风险,这也是为什么微信要求这么做,是有道理的。

不建议你想办法去绕过这个,除非你的服务器确实觉得没有任何风险。

from wxjava.

lkbtt avatar lkbtt commented on June 12, 2024

老板觉得数据不安全,所以服务部署在公司机房,通过FRP配置的内网穿透;
又不是专线,所以IP不是固定的;
这种情况真的没办法解决吗?

from wxjava.

nadirvishun avatar nadirvishun commented on June 12, 2024

只代理一个接口有些费劲,目前貌似只暴露了修改基础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.

lkbtt avatar lkbtt commented on June 12, 2024

实现方案如下:
阿里云openresty配置接口XXXX, 转发到lua脚本请求腾讯后台,本地定期请求该XXXX接口接口

from wxjava.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.