Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
企猫商务
frp
提交
ccb85a99
F
frp
项目概览
企猫商务
/
frp
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
frp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ccb85a99
编写于
6月 03, 2021
作者:
F
fatedier
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update README
上级
02b12df8
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
29 addition
and
2 deletion
+29
-2
README.md
README.md
+26
-2
conf/frpc_full.ini
conf/frpc_full.ini
+3
-0
未找到文件。
README.md
浏览文件 @
ccb85a99
...
...
@@ -24,12 +24,13 @@ frp also has a P2P connect mode.
*
[
Forward DNS query request
](
#forward-dns-query-request
)
*
[
Forward Unix domain socket
](
#forward-unix-domain-socket
)
*
[
Expose a simple HTTP file server
](
#expose-a-simple-http-file-server
)
*
[
Enable HTTPS for local HTTP(
s
) service
](
#enable-https-for-local-https-service
)
*
[
Enable HTTPS for local HTTP(
S
) service
](
#enable-https-for-local-https-service
)
*
[
Expose your service privately
](
#expose-your-service-privately
)
*
[
P2P Mode
](
#p2p-mode
)
*
[
Features
](
#features
)
*
[
Configuration Files
](
#configuration-files
)
*
[
Using Environment Variables
](
#using-environment-variables
)
*
[
Split Configures Into Different Files
](
#split-configures-into-different-files
)
*
[
Dashboard
](
#dashboard
)
*
[
Admin UI
](
#admin-ui
)
*
[
Monitor
](
#monitor
)
...
...
@@ -412,6 +413,27 @@ export FRP_SSH_REMOTE_PORT="6000"
`frpc`
will render configuration file template using OS environment variables. Remember to prefix your reference with
`.Envs`
.
### Split Configures Into Different Files
You can split multiple proxy configs into different files and include them in the main file.
```
ini
# frpc.ini
[common]
server_addr
=
x.x.x.x
server_port
=
7000
includes
=
./confd/*.ini
```
```
ini
# ./confd/test.ini
[ssh]
type
=
tcp
local_ip
=
127.0.0.1
local_port
=
22
remote_port
=
6000
```
### Dashboard
Check frp's status and proxies' statistics information by Dashboard.
...
...
@@ -624,10 +646,12 @@ admin_addr = 127.0.0.1
admin_port
=
7400
```
Then run command
`frpc reload -c ./frpc.ini`
and wait for about 10 seconds to let
`frpc`
create or update or
delet
e proxies.
Then run command
`frpc reload -c ./frpc.ini`
and wait for about 10 seconds to let
`frpc`
create or update or
remov
e proxies.
**Note that parameters in [common] section won't be modified except 'start'.**
You can run command
`frpc verify -c ./frpc.ini`
before reloading to check if there are config errors.
### Get proxy status from client
Use
`frpc status -c ./frpc.ini`
to get status of all proxies. The
`admin_addr`
and
`admin_port`
fields are required for enabling HTTP API.
...
...
conf/frpc_full.ini
浏览文件 @
ccb85a99
...
...
@@ -102,6 +102,9 @@ meta_var2 = 234
# It affects the udp and sudp proxy.
udp_packet_size
=
1500
# include other config files for proxies.
# includes = ./confd/*.ini
# 'ssh' is the unique proxy name
# if user in [common] section is not empty, it will be changed to {user}.{proxy} such as 'your_name.ssh'
[ssh]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录