[GH-ISSUE #2705] [Feature Request] HTTP和HTTPS中的custom_domains最好能设置所有域名 #2160

Closed
opened 2026-05-05 13:23:22 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @rebootder on GitHub (Dec 17, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2705

Describe the feature request

在frpc客户端中
[web]
type = http
local_port = 80
custom_domains=a.com,b.com,c.com,d.com.......(无数个)

域名很多在增加删除起来麻烦.
功能建议: {无需考虑多客户端,只有自己使用}
[web]
type = http
local_port = 80
custom_domains=*

这个功能使用tcp转发80可以解决,但是无法获取用户真实IP地址.
如果在TCP转发增加一个能获取用户真实IP地址那最好了

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @rebootder on GitHub (Dec 17, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2705 ### Describe the feature request 在frpc客户端中 [web] type = http local_port = 80 custom_domains=a.com,b.com,c.com,d.com.......(无数个) 域名很多在增加删除起来麻烦. 功能建议: {无需考虑多客户端,只有自己使用} [web] type = http local_port = 80 custom_domains=* 这个功能使用tcp转发80可以解决,但是无法获取用户真实IP地址. 如果在TCP转发增加一个能获取用户真实IP地址那最好了 ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [X] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:23:22 -06:00
Author
Owner

@fatedier commented on GitHub (Dec 18, 2021):

支持泛域名,custom_domains = *.xxx.com

如果在TCP转发增加一个能获取用户真实IP地址那最好了

这个会在 v2 版本中支持。

<!-- gh-comment-id:997142852 --> @fatedier commented on GitHub (Dec 18, 2021): 支持泛域名,`custom_domains = *.xxx.com` > 如果在TCP转发增加一个能获取用户真实IP地址那最好了 这个会在 v2 版本中支持。
Author
Owner

@rebootder commented on GitHub (Dec 18, 2021):

V2什么时候发布啊 很是期待

<!-- gh-comment-id:997147097 --> @rebootder commented on GitHub (Dec 18, 2021): V2什么时候发布啊 很是期待
Author
Owner

@fatedier commented on GitHub (Dec 18, 2021):

@rebootder 目前还在早期的设计阶段,有什么想法也可以提出来,主要是目前的版本框架已经固定,不太好做大的改动,使用量比较大,如果不兼容会影响到很多用户。

<!-- gh-comment-id:997204642 --> @fatedier commented on GitHub (Dec 18, 2021): @rebootder 目前还在早期的设计阶段,有什么想法也可以提出来,主要是目前的版本框架已经固定,不太好做大的改动,使用量比较大,如果不兼容会影响到很多用户。
Author
Owner

@rebootder commented on GitHub (Dec 20, 2021):

原来大佬早已经把这个加进来了
proxy_protocol_version = v2

[https web]
type = https
local_port = 443
custom_domains = onet.yourdomain.com

目前支持 v1 和 v2 两个版本的 proxy protocol 协议。

proxy_protocol_version = v2

nginx配置文件如下:
server {
listen 443 ssl http2 proxy_protocol;
real_ip_header proxy_protocol;
real_ip_recursive on;
set_real_ip_from 127.0.0.1;
……
}

目前希望的就是一个要求了
custom_domains=*
custom_domains=.cn
custom_domains=
.com
这样的写法

<!-- gh-comment-id:997639241 --> @rebootder commented on GitHub (Dec 20, 2021): 原来大佬早已经把这个加进来了 proxy_protocol_version = v2 [https web] type = https local_port = 443 custom_domains = onet.yourdomain.com # 目前支持 v1 和 v2 两个版本的 proxy protocol 协议。 proxy_protocol_version = v2 nginx配置文件如下: server { listen 443 ssl http2 proxy_protocol; real_ip_header proxy_protocol; real_ip_recursive on; set_real_ip_from 127.0.0.1; …… } 目前希望的就是一个要求了 custom_domains=* custom_domains=*.cn custom_domains=*.com 这样的写法
Author
Owner

@ax2009live commented on GitHub (Jan 15, 2022):

custom_domains=* 且要知道真实的 IP 地址
能否透露一下,这样做目的何在? @rebootder

<!-- gh-comment-id:1013607173 --> @ax2009live commented on GitHub (Jan 15, 2022): custom_domains=* 且要知道真实的 IP 地址 能否透露一下,这样做目的何在? @rebootder
Author
Owner

@github-actions[bot] commented on GitHub (Feb 15, 2022):

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:1039719069 --> @github-actions[bot] commented on GitHub (Feb 15, 2022): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Author
Owner

@peaceanddemocracy commented on GitHub (May 30, 2022):

同上,有这个需求,不知op现在解决这个问题了么?

<!-- gh-comment-id:1140997326 --> @peaceanddemocracy commented on GitHub (May 30, 2022): 同上,有这个需求,不知op现在解决这个问题了么?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2160
No description provided.