[GH-ISSUE #3652] 文档没有更新支持 yaml和json #2913

Closed
opened 2026-05-05 13:52:48 -06:00 by gitea-mirror · 11 comments
Owner

Originally created by @wuai1024 on GitHub (Oct 10, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3652

Describe the feature request

v0.52.0

我看描述中说到后续会移除 ini 的 支持改为支持 yaml和json,但是文档中好像还没看到类似的配置说明

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 @wuai1024 on GitHub (Oct 10, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3652 ### Describe the feature request v0.52.0 我看描述中说到后续会移除 ini 的 支持改为支持 yaml和json,但是文档中好像还没看到类似的配置说明 ### Describe alternatives you've considered _No response_ ### Affected area - [X] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (Oct 10, 2023):

gofrp.org 文档站之后更新。

<!-- gh-comment-id:1755056322 --> @fatedier commented on GitHub (Oct 10, 2023): gofrp.org 文档站之后更新。
Author
Owner

@beginor commented on GitHub (Oct 10, 2023):

感谢大佬,等 yaml 文档更新再跟进。 toml 不熟悉, 还是 yaml 用着顺手

<!-- gh-comment-id:1755440497 --> @beginor commented on GitHub (Oct 10, 2023): 感谢大佬,等 yaml 文档更新再跟进。 toml 不熟悉, 还是 yaml 用着顺手
Author
Owner

@xqzr commented on GitHub (Oct 11, 2023):

英文文档已更新支持
另外 几种格式之间可互转

<!-- gh-comment-id:1756993163 --> @xqzr commented on GitHub (Oct 11, 2023): 英文文档已更新支持 另外 几种格式之间可互转
Author
Owner

@wuai1024 commented on GitHub (Oct 11, 2023):

英文文档已更新支持 另外 几种格式之间可互转

toml 没用过,我用的更广泛的 yaml 。

目前我试了下,好像不行,配置如下。

common:
  bind_port: 36000
  tcp_mux: true
common:
  bindPort: 36000
  tcpMux: true

这2种我都试过了。

frps -c frps.yaml

结果都不对。

image
<!-- gh-comment-id:1757062090 --> @wuai1024 commented on GitHub (Oct 11, 2023): > 英文文档已更新支持 另外 几种格式之间可互转 toml 没用过,我用的更广泛的 yaml 。 目前我试了下,好像不行,配置如下。 ``` yaml common: bind_port: 36000 tcp_mux: true ``` ``` yaml common: bindPort: 36000 tcpMux: true ``` 这2种我都试过了。 ``` shell frps -c frps.yaml ``` 结果都不对。 <img width="589" alt="image" src="https://github.com/fatedier/frp/assets/13379708/966a1e9b-e5f3-40f2-8312-413bd270306c">
Author
Owner

@superzjg commented on GitHub (Oct 11, 2023):

common

我看示例toml已经不用common了呢

<!-- gh-comment-id:1757180735 --> @superzjg commented on GitHub (Oct 11, 2023): > ```yaml > common > ``` 我看示例toml已经不用common了呢
Author
Owner

@wuai1024 commented on GitHub (Oct 11, 2023):

发现了,yaml和ini的是不一样的参数,很多参数改为驼峰了。我参照toml的格式,改为yaml了。

<!-- gh-comment-id:1757389265 --> @wuai1024 commented on GitHub (Oct 11, 2023): 发现了,yaml和ini的是不一样的参数,很多参数改为驼峰了。我参照toml的格式,改为yaml了。
Author
Owner

@beginor commented on GitHub (Oct 11, 2023):

看着新的 frpc.toml ,再结合自己的 frpc.json ,自己写了一个 frpc.yml 居然成功了。 很多属性都不一样了,要按照新的 toml 中的属性来写配置。

<!-- gh-comment-id:1757854602 --> @beginor commented on GitHub (Oct 11, 2023): 看着新的 frpc.toml ,再结合自己的 frpc.json ,自己写了一个 frpc.yml 居然成功了。 很多属性都不一样了,要按照新的 toml 中的属性来写配置。
Author
Owner

@Garbo1229 commented on GitHub (Oct 13, 2023):

gofrp.org 文档站之后更新。

现在404了

<!-- gh-comment-id:1761048283 --> @Garbo1229 commented on GitHub (Oct 13, 2023): > gofrp.org 文档站之后更新。 现在404了
Author
Owner

@Stonestonestone commented on GitHub (Dec 27, 2023):

发现了,yaml和ini的是不一样的参数,很多参数改为驼峰了。我参照toml的格式,改为yaml了。

请问yaml怎么写的?我写了一份校验都没过去

<!-- gh-comment-id:1869883581 --> @Stonestonestone commented on GitHub (Dec 27, 2023): > 发现了,yaml和ini的是不一样的参数,很多参数改为驼峰了。我参照toml的格式,改为yaml了。 请问yaml怎么写的?我写了一份校验都没过去
Author
Owner

@superzjg commented on GitHub (Dec 27, 2023):

发现了,yaml和ini的是不一样的参数,很多参数改为驼峰了。我参照toml的格式,改为yaml了。

请问yaml怎么写的?我写了一份校验都没过去

在线转:个别问题手动改
https://tooltt.com/toml2yaml/

<!-- gh-comment-id:1869891982 --> @superzjg commented on GitHub (Dec 27, 2023): > > 发现了,yaml和ini的是不一样的参数,很多参数改为驼峰了。我参照toml的格式,改为yaml了。 > > 请问yaml怎么写的?我写了一份校验都没过去 在线转:个别问题手动改 https://tooltt.com/toml2yaml/
Author
Owner

@Stonestonestone commented on GitHub (Dec 27, 2023):

发现了,yaml和ini的是不一样的参数,很多参数改为驼峰了。我参照toml的格式,改为yaml了。

请问yaml怎么写的?我写了一份校验都没过去

在线转:个别问题手动改 https://tooltt.com/toml2yaml/

感谢,没注意到toml里的结构

<!-- gh-comment-id:1869895618 --> @Stonestonestone commented on GitHub (Dec 27, 2023): > > > 发现了,yaml和ini的是不一样的参数,很多参数改为驼峰了。我参照toml的格式,改为yaml了。 > > > > > > 请问yaml怎么写的?我写了一份校验都没过去 > > 在线转:个别问题手动改 https://tooltt.com/toml2yaml/ 感谢,没注意到toml里[[]]的结构
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#2913
No description provided.