如何反向代理 TFS 服务器 [英] How to reverse proxy a TFS server

查看:74
本文介绍了如何反向代理 TFS 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在当地办公室使用 TFS 服务器 2017 更新 2.但是我们需要访问家里的服务器,我们尝试使用nginx搭建反向代理来访问TFS服务器,但是失败了.此外,Apache 无法通过 TFS 的 NTLM 授权来做到这一点.有人知道怎么做吗?

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?

推荐答案

nginx 和 Apache 服务器都无法正确处理 NTLM 身份验证.即使在 nginx 中使用流"服务器,它有时仍然会抛出异常.所以我发现的最好方法是在 NodeJS 中编写一个带有套接字的纯反向代理.

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.

请在此处尝试代码:https://gist.github.com/gekowa/7fdd6fa6db51a767139b436a一个>

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.

这篇关于如何反向代理 TFS 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆