请教, 关于企业微信应用通知

现在新建立的企业应用都要求绑定白名单IP, 所以想着在服务器上部署一个服务, 暴露HTTP接口出来给自己其它电脑或需要的地方来发送消息.

求助万能的佬友们, 有没有好用的这种服务可部署呀

6 个赞

有一台云服务器就行了呀

是的, 但是需要写个稳定的服务, 用Http请求通过服务器发出去, 不想自己写了, 就看看有没有现成的好用的

好像没有这种成品,企微的通知类型也不少,若果只用其中一种,自己写也挺快的

好的, 感谢, 再等等看其它佬友有没有什么即推荐, 实在不行就自己写了tieba_001

蹲一波tieba_003

有成品啊,免费的serve0 就可以

nodejs代码 十几行, 自己撸Nginx配置也行

const http = require('node:http');
const { createProxyMiddleware } = require('http-proxy-middleware')

/**
 * Configure proxy middleware
 */
const jsonPlaceholderProxy = createProxyMiddleware({
    target: 'https://qyapi.weixin.qq.com',
    changeOrigin: true, // for vhosted sites, changes host header to match to target's host
    logger: console,
})

/**
 * Add the proxy to http-server
 */
const server = http.createServer(jsonPlaceholderProxy);

// 需要把端口换成自己可以使用的
server.listen(22470)
console.log('[DEMO] Server: listening on port 22470');

process.on('SIGINT', () => server.close());
process.on('SIGTERM', () => server.close());
1 个赞

佬,能详细说说怎么用吗?

这个看看呢

2 个赞

暂时没找到更好的, 先用这个吧, 谢佬