[GH-ISSUE #3890] 使用新版toml格式的配置文件时非常困惑的一点,官方文档提供的配置参考无法使用 #3085

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

Originally created by @ZimaBlueee on GitHub (Dec 24, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3890

Describe the feature request

我在官网查询到token的配置如下图
image

但实际上,配置文件需要的是:
auth.token = "xxx"
而不是:
token = "xxx"

这让我很困扰,不止我举的这个例子,其他配置也有同样的问题:往新版toml格式的配置文件上转换时,参照官网的配置是不行的,只能从issue里翻答案。

请教下,哪里有新版格式(toml,yaml)的标准配置案例可供参考呢?还是我找错地方了呢?

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 @ZimaBlueee on GitHub (Dec 24, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3890 ### Describe the feature request 我在[官网](https://gofrp.org/zh-cn/docs/reference/client-configures/)查询到token的配置如下图 ![image](https://github.com/fatedier/frp/assets/53747502/a1ce353f-8d53-4745-890a-564b290637b1) 但实际上,配置文件需要的是: `auth.token = "xxx"` 而不是: `token = "xxx"` 这让我很困扰,不止我举的这个例子,其他配置也有同样的问题:往新版toml格式的配置文件上转换时,参照官网的配置是不行的,只能从issue里翻答案。 请教下,哪里有新版格式(toml,yaml)的标准配置案例可供参考呢?还是我找错地方了呢? ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [X] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@xqzr commented on GitHub (Dec 24, 2023):

#3847

<!-- gh-comment-id:1868536294 --> @xqzr commented on GitHub (Dec 24, 2023): #3847
Author
Owner

@ZimaBlueee commented on GitHub (Dec 24, 2023):

#3847

感谢感谢!

<!-- gh-comment-id:1868538988 --> @ZimaBlueee commented on GitHub (Dec 24, 2023): > #3847 感谢感谢!
Author
Owner

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

实际上是排版的问题,并不是文档错误,不仔细看容易搞错。比如你说的 token 是有上级 auth 的 :
https://gofrp.org/zh-cn/docs/reference/server-configures/#serverconfig

<!-- gh-comment-id:1869009076 --> @superzjg commented on GitHub (Dec 25, 2023): 实际上是排版的问题,并不是文档错误,不仔细看容易搞错。比如你说的 token 是有上级 auth 的 : https://gofrp.org/zh-cn/docs/reference/server-configures/#serverconfig
Author
Owner

@udbyygyt commented on GitHub (Mar 12, 2024):

查了半天,真的是这配置太奇怪

感谢感谢!

<!-- gh-comment-id:1991553930 --> @udbyygyt commented on GitHub (Mar 12, 2024): 查了半天,真的是这配置太奇怪 感谢感谢!
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#3085
No description provided.