Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

什么时候打算支持按照url路径来做代理?也就是类似根据nginx的location配置 #179

Closed
pkgplus opened this issue Dec 16, 2016 · 7 comments
Labels

Comments

@pkgplus
Copy link
Contributor

pkgplus commented Dec 16, 2016

目前是根据custom_domains来做反向代理,能否考虑根据请求url来做映射并代理到frpc上?

@pkgplus
Copy link
Contributor Author

pkgplus commented Dec 19, 2016

1.registryMap更换成独立的router,根据域名+配置的location来映射Listen对象;
2.另外,是否考虑把ProxyServer的配置和ServerMetric的字段合并一下,把公共字段合并到config包中
在dev的基础上写完了,并且测试也跑通了

增加custom_location配置参数:
[web01]
type = http
auth_token = 123
custom_domains = a.b.com
custom_location = /mac,/macbook

@fatedier
Copy link
Owner

@xuebing1110

  1. 0.9.0 版本暂时不加上这个功能,应该会在下一次小更新的时候加上,我会找时间 review 下代码。
  2. 建议最好兼容 nginx 的 url 路由格式,这个可以之后再做。
  3. 由于不断的加功能,代码结构上已经有些混乱,新版本发布之后会进行一次重构。

@pkgplus
Copy link
Contributor Author

pkgplus commented Dec 19, 2016

@fatedier
OK,期待下一个小版本
兼容nginx的url可以在router.go里实现,后面如果路由复杂可以考虑router作为单独的package

@fatedier fatedier added the todo label Dec 19, 2016
@wanminxg
Copy link

同期待这个功能。希望可以尽快加上。

@pkgplus
Copy link
Contributor Author

pkgplus commented Dec 20, 2016

@wanminxg
想尝鲜的可以用一下我的版本:http://download.bingbaba.com/frp_0.9.0_linux_amd64.tar.gz

@wanminxg
Copy link

@xuebing1110
server和client的配置可以发一下吗?为啥我没跑起来..

@fatedier
Copy link
Owner

0.9.1 版本已支持。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants