1
rekulas 7 天前
没试过,要不考虑自己加个反代代理层,就不用管钉钉怎么实现了,http 协议都可以挂上
|
2
yulgang 7 天前
日志里看 HTTP/1.1 400 感觉.....
location /api { proxy_pass https://api.dingtalk.com; proxy_http_version 1.1; # 新加的 proxy_connect_timeout 60; proxy_read_timeout 60; proxy_send_timeout 60; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host 'api.dingtalk.com'; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; proxy_set_header Connection ""; # 新加的 } 或者 location /api { proxy_pass https://api.dingtalk.com; proxy_http_version 1.1; # 新加的 proxy_set_header Upgrade $http_upgrade; # 新加的 proxy_set_header Connection "upgrade"; # 新加的 proxy_connect_timeout 60; proxy_read_timeout 60; proxy_send_timeout 60; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host 'api.dingtalk.com'; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; } 感觉下面这个能行。 |
3
9fan OP 感谢,已经把有关调用钉钉服务拆分了,直接放在有外网的机子上,直接远程调用,不代理了,已经给钉钉提工单了,没用
|