yaoweibin / nginx_tcp_proxy_module

add the feature of tcp proxy with nginx, with health check and status monitor
http://yaoweibin.github.com/nginx_tcp_proxy_module
1.64k stars 366 forks source link

server支持配置域名吗 #178

Open uglylee opened 2 years ago

uglylee commented 2 years ago

nginx编译后放在k8s里,如何使用service name配置在server 试了下server重启后不能获取新地址,加了resolver为kube-dns.kube-system:53也不行

yaoweibin commented 2 years ago

不支持,这个是TCP的,只能通过端口来区分

uglylee @.***> 于2022年1月22日周六 22:43写道:

nginx编译后放在k8s里,如何使用service name配置在server 试了下server重启后不能获取新地址,加了resolver为kube-dns.kube-system:53也不行

— Reply to this email directly, view it on GitHub https://github.com/yaoweibin/nginx_tcp_proxy_module/issues/178, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABFRGJTFE3YJD3W2T67BFTUXK7CFANCNFSM5MSBZ74Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

frankli0324 commented 1 year ago

是否可以支持ssl_server_name,取sni作server name呢?

yaoweibin commented 1 year ago

不支持的,现在没有这个功能

frankli0324 commented 1 year ago

所以这是个feature request嘛,未来可以支持么?

yaoweibin commented 1 year ago

没有太明白,你直接https proxy有什么问题吗?还是你这个是SSL+TCP的协议,然后通过SNI来区分?

Frank @.***> 于2022年11月7日周一 01:28写道:

所以这是个feature request嘛,未来可以支持么?

— Reply to this email directly, view it on GitHub https://github.com/yaoweibin/nginx_tcp_proxy_module/issues/178#issuecomment-1304851636, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABFRGMUOXRWRZRHTF2Q6ALWG7TCZANCNFSM5MSBZ74Q . You are receiving this because you commented.Message ID: @.***>

frankli0324 commented 1 year ago

没有太明白,你直接https proxy有什么问题吗?还是你这个是SSL+TCP的协议,然后通过SNI来区分?

后者 我目前是自己写了个小玩具来做这个事,然而毕竟会需要多占一个端口,比较强迫症,不过也不是必须的功能,如果以后会写那当然更好,不实现的话即便对我个人而言也不是什么问题,所以,随意( 就,可以评估一下这玩意的通用性?看看对于大家而言算不算一个比较general的使用场景