夜莺告警域名转发问题

Viewed 89

生产环境没有外网,然后有个特定的出口可以访问云平台,这边配了了nginx转发告警的信息到云平台,然后有云平台转发到企微,现在死在域名校验这了
Jan 15 11:31:59 localhost n9e-server: 2024-01-15 11:31:59.904920 WARNING poster/post.go:218 failed to curl https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=41353a86-143e-4332-9657-b904930e0764 error: Post "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=41353a86-143e-4332-9657-b904930e0764": x509: certificate signed by unknown authority
Jan 15 11:31:59 localhost n9e-server: 2024-01-15 11:31:59.905002 ERROR sender/dingtalk.go:100 wecom_sender: result=fail url=https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=41353a86-143e-4332-9657-b904930e0764 code=0 error=Post "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=41353a86-143e-4332-9657-b904930e0764": x509: certificate signed by unknown authority response=
本地配的SSL证书校验不通过
可以将告警配置请求修改为http吗?如何修改,希望有大佬可以指点一下

1 Answers

右上角点击个人中心,企微的token写成 http://<nginx-server>/cgi-binwebhok/send?key=xxxx,然后 nginx 转发给企微的地址 image.png

感谢指点,一直以为这个框里面只能填机器人token的信息呢,没想到还能这么填