server
{
#访问/wework/webhook路径下的请求,都转发到https://qyapi.weixin.qq.com/
location /wework/webhook
{
proxy_pass https://qyapi.weixin.qq.com/;
}
}
发送如下请求,实际请求地址是:https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxxxxxxxxx
axios.post('https://www.mysite.com/wework/webhook/cgi-bin/webhook/send?key=xxxxxxxxxx', params)