mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #2232] 建议配置文件可以给目录或者*.ini一类的方式 #1775
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#1775
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 @jonozw on GitHub (Feb 3, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2232
The solution you want
当前的配置文件是单文件ini, 命令行是frpc -c config.ini
但是实际使用中会经常增删设置, 而主配置不变, 这样每次修改配置文件很麻烦. 一不小心改错了还得debug.
是否能将配置调整成v2ray那样的 exec -confdir config_dir
或者类似nginx那样主配置文件里可以写一句
include /single.conf/*.ini
Alternatives considered
How to implement this function
N/A
Application scenarios of this function
startup
@fatedier commented on GitHub (Feb 5, 2021):
Good idea
@zsinba commented on GitHub (Feb 5, 2021):
顺便提一下:
修改配置文件,期望能热加载.
像 nginx -t ; 检查通过后, nginx -s reload这样热加载.
或像srs那样 , killall -1 srs 热加载.
@fatedier commented on GitHub (Feb 5, 2021):
@zsinba
./frpc -c ./frpc.ini reload@zsinba commented on GitHub (Feb 5, 2021):
哎呦我靠,有这个命令?
@zsinba commented on GitHub (Feb 5, 2021):
frps可以吗?
@zsinba commented on GitHub (Feb 5, 2021):
的确有.谢谢老板.
@dudebing99 commented on GitHub (May 13, 2021):
单个配置文件足够简洁了,而且完全能够覆盖你的场景吧?
frpc -c config-dev.ini
frp -c config-prod.ini
@fatedier commented on GitHub (May 13, 2021):
@dudebing99 这个功能已经在开发中了,作为可选的能力,某些场景下可能要根据不同的用途对 proxy 的配置进行分类,分别管理,批量删除等等。
@jonozw commented on GitHub (May 13, 2021):
如果个人用, 的确自己配置几个文件切换就好了.
如果在公司, 哪怕小公司商用, 配置文件管理就需要了
如果个人用, 的确自己配置几个文件切换就好了.
如果在公司, 哪怕小公司商用, 配置文件管理就需要了
@dudebing99 commented on GitHub (May 13, 2021):
我觉得,配置文件管理方式跟应用场景大小没有啥关系,跟软件本身的功能特点有关。frp 目前的配置文件看起来是通过不同的 section 来支持不同的模块,对标 frp,nginx 这种配置文件方式是为了更好地支持多个相同的 section (例如,多个 http/server)。
不过,期待看到这个新功能,或许确实会带来我没理解到的便捷之处。