How to reverse proxy a TFS server

╄→гoц情女王★ 提交于 2021-02-18 18:16:27

问题


We're using a TFS server 2017 update 2 in our local office. But we need access the server at home, we tried to use nginx for build a reverse proxy to access TFS server, but failed. Also the Apache haven't ability to do that to pass the NTLM authorization of TFS. Do someone know how to do that?


回答1:


Both nginx and Apache server can't handle NTLM authentication properly. Even if use "stream" server in nginx, it still throw exceptions at times. So the best way that I've found is to write a pure reverse proxy with socket in NodeJS.

Please try the code here: https://gist.github.com/gekowa/7fdd6fa6db51a7671de5469b3943a9da

The implementation was pretty straightforward, it just double pipe local and remote sockets, and everything is just fine.



来源:https://stackoverflow.com/questions/45857746/how-to-reverse-proxy-a-tfs-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!