[GH-ISSUE #3990] Wiki例子格式错误 #3163

Closed
opened 2026-05-05 14:02:52 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @Matthew-Harris-36 on GitHub (Feb 14, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/3990

Bug Description

我在实际配置中发现配置格式和WIKI中有很大出入,所以指出来,还麻烦开发者大大改下,避免其它小白犯错。
官方Wiki网页
image
此处前一行应该有[common]字段,不应该省略,因为前面也没有提到与[common]相关的内容,下文的frpc.toml也是一样。
image
serverAddr应该为server_addrserverPort应该为server_port[[proxies]]应该只有一对中括号,[[proxies]]name段功能重复,只讲一个就好了,localIP应该为local_iplocalPort应该为local_portremotePort应该为remote_port,此外代码块中的所有双引号都应该去掉。
为本地 HTTP 服务启用 HTTPS这段中我实在找不到正确的格式是怎样的,我在全网没找到过有人介绍过这个功能的,按官方WIKI配置也提示出错。

frpc Version

0.54.0

frps Version

0.54.0

System Architecture

linux/amd64

Configurations

测试

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @Matthew-Harris-36 on GitHub (Feb 14, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/3990 ### Bug Description 我在实际配置中发现配置格式和WIKI中有很大出入,所以指出来,还麻烦开发者大大改下,避免其它小白犯错。 [官方Wiki网页](https://gofrp.org/zh-cn/docs/examples/ssh/) ![image](https://github.com/fatedier/frp/assets/62049321/b782bcd7-25ce-41e2-87f4-18a22e63f7d1) 此处前一行应该有`[common]`字段,不应该省略,因为前面也没有提到与`[common]`相关的内容,下文的frpc.toml也是一样。 ![image](https://github.com/fatedier/frp/assets/62049321/a4855f63-d9f1-4635-afd8-752f73bcc3c1) `serverAddr`应该为`server_addr`,`serverPort`应该为`server_port`,`[[proxies]]`应该只有一对中括号,`[[proxies]]`和`name`段功能重复,只讲一个就好了,`localIP`应该为`local_ip`,`localPort`应该为`local_port`,`remotePort`应该为`remote_port`,此外代码块中的所有双引号都应该去掉。 [为本地 HTTP 服务启用 HTTPS](https://gofrp.org/zh-cn/docs/examples/https2http/)这段中我实在找不到正确的格式是怎样的,我在全网没找到过有人介绍过这个功能的,按官方WIKI配置也提示出错。 ### frpc Version 0.54.0 ### frps Version 0.54.0 ### System Architecture linux/amd64 ### Configurations 测试 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [X] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@superzjg commented on GitHub (Feb 17, 2024):

toml格式配置不需要也不能用 [common] 字段,若加上,会被认为使用ini格式的配置。
配置文件示例请阅读:
https://github.com/fatedier/frp/tree/dev/conf
其中 legacy 目录是旧的 ini 格式,目前还是支持的。你是把两者搞混了,后续会删除ini格式支持

<!-- gh-comment-id:1949639966 --> @superzjg commented on GitHub (Feb 17, 2024): toml格式配置不需要也不能用 [common] 字段,若加上,会被认为使用ini格式的配置。 配置文件示例请阅读: https://github.com/fatedier/frp/tree/dev/conf 其中 legacy 目录是旧的 ini 格式,目前还是支持的。你是把两者搞混了,后续会删除ini格式支持
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#3163
No description provided.