mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2705] [Feature Request] HTTP和HTTPS中的custom_domains最好能设置所有域名 #2160
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2160
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@fatedier commented on GitHub (Dec 18, 2021):
支持泛域名,
custom_domains = *.xxx.com这个会在 v2 版本中支持。
@rebootder commented on GitHub (Dec 18, 2021):
V2什么时候发布啊 很是期待
@fatedier commented on GitHub (Dec 18, 2021):
@rebootder 目前还在早期的设计阶段,有什么想法也可以提出来,主要是目前的版本框架已经固定,不太好做大的改动,使用量比较大,如果不兼容会影响到很多用户。
@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
这样的写法
@ax2009live commented on GitHub (Jan 15, 2022):
custom_domains=* 且要知道真实的 IP 地址
能否透露一下,这样做目的何在? @rebootder
@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.
@peaceanddemocracy commented on GitHub (May 30, 2022):
同上,有这个需求,不知op现在解决这个问题了么?