mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3169] [Feature Request] 是否考虑添加import外部配置功能? #2540
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#2540
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 @Orisland on GitHub (Nov 13, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3169
Describe the feature request
在本地网络有多个frp服务器线路时,如果需要增删本地的链接则需要使用两份不同的frpc.ini,而实际上,两个frpc.ini的区别仅在于token与域名,希望frp在未来可以推出import功能,导入公共的配置,让两个frpc使用相同的客户端连接配置和不同的common配置。
这样可以免去反复复制粘贴的烦恼,也方便不同的功能进行拆分处理。
例如:
Describe alternatives you've considered
如果该功能不能被提供,那么我就需要对每一个frpc.ini进行重复性的复制粘贴工作,这会提高配置的错误率,也更为繁琐。
一旦涉及到本地客户端的增删或者端口的调整则需要对n个frpc.ini进行重复的工作。
Affected area
@ahmr-bot-old commented on GitHub (Nov 13, 2022):
这个,个人认为用途不大,从您提供的配置文件实例来看,既然已经指定了服务器 IP 地址,又何必在多此一举,将单隧道文件再拆分开来,再其次的话,对于 Frp 这类项目而言,仅仅是一个求将内网服务穿透出去,对于大访问量分布式服务个人认为是不太适合,犹如现在的主要几家 Frp 服务,每个服务器的子隧道的配置文件很难做到一样,如果是仅是自己的使用需求,不使用市面上已有的穿透服务的话,无论内外网,都可以直接采用 HAProxy IPtables 等直接进行代理,对于多线路的需求理论上不大,因此我认为,没太大的必要吧……(仅个人建议,勿喷)
@Orisland commented on GitHub (Nov 13, 2022):
错误的,这种功能的面向为我自己的多台云服务器,每台服务器均为我自行搭建的frps,并不是市面上的商业frp。我需要不止一条线路来减少某一台宕机导致的连接全部中断问题。
多个线路的接入仅出于线路稳定性考虑。
@fatedier commented on GitHub (Nov 14, 2022):
https://github.com/fatedier/frp#split-configures-into-different-files