update README

This commit is contained in:
杨黄林
2023-08-30 16:08:26 +08:00
parent 1e17465466
commit 4c9f66fc23
2 changed files with 45 additions and 12 deletions

View File

@@ -47,18 +47,31 @@ frp version >= v0.31.0
plugin_addr = 127.0.0.1
;plugin listen port
plugin_port = 7200
;user and passwd for basic auth protect
;the username of manage ui,optional
admin_user = admin
;the password of manage ui,optional
admin_pwd = admin
[users]
;user1
;user user1 with meta_token 123
user1 = 123
;user2
;user user2 with meta_token abc
user2 = abc
[ports]
;user1 can only use ports 8080,9090 to 9010 ,other ports will fail to create proxy (frpc can normally startup)
user1=8080,9090-9010
[domains]
;user1 can only use domain web01.user1.com ,other domain will fail to create proxy (frpc can normally startup)
user1=web01.user1.com
[subdomains]
;user1 can only use subdomain web01 ,other subdomain will fail to create proxy (frpc can normally startup)
user1=web01
[disabled]
;user2 is disable
;user2 is disabled,when frpc use this user to connect with frps,if frpc is not startup,it cannot startup,if it's already startup,it will always show error logs on console
user2 = disable
```
@@ -96,10 +109,10 @@ meta_token = 123
[ssh]
type = tcp
local_port = 22
remote_port = 6000
remote_port = 8080
```
For user2:(user2 can't connect to server,because it is disable)
For user2:(user2 cannot connect to server,because it is disabled)
```ini
# frpc.ini
@@ -115,7 +128,11 @@ local_port = 22
remote_port = 6000
```
# Credits
## Issues & Ideas
If you have any issues or ideas, put it on [issues](https://github.com/yhl452493373/frps-multiuser/issues). I will try my best to achieve it.
## Credits
+ [frp](https://github.com/fatedier/frp)
+ [fp-multiuser](https://github.com/gofrp/fp-multiuser)

View File

@@ -53,13 +53,25 @@ admin_user = admin
admin_pwd = admin
[users]
;user1
;user1的meta_token为123
user1 = 123
;user2
;user2的meta_token为abc
user2 = abc
[ports]
;user1只能使用8080,9090到9010端口,其他端口则建立连接时返回失败(不影响客户端启动)
user1=8080,9090-9010
[domains]
;user1只能使用web01.yyy.zzz域名,配置了其他域名则建立连接时返回失败(不影响客户端启动)
user1=web01.user1.com
[subdomains]
;user1只能使用web01.xxx.yyy.zzz域名,配置了其他三级域名则建立连接时返回失败(不影响客户端启动)
user1=web01
[disabled]
;user2被禁用
;user2被禁用,frpc使用此账户与frps通信时,如果未启动则无法启动,如果已启动,则会一直打印错误日志
user2 = disable
```
@@ -97,7 +109,7 @@ meta_token = 123
[ssh]
type = tcp
local_port = 22
remote_port = 6000
remote_port = 8080
```
user2 的配置:由于示例文件中user2被禁用因此无法连接
@@ -116,7 +128,11 @@ local_port = 22
remote_port = 6000
```
# 致谢
## 使用
如果使用中有问题或者有其他想法,在[issues](https://github.com/yhl452493373/frps-multiuser/issues)上提出来。 如果我能搞定的话,我尽量搞。
## 致谢
+ [frp](https://github.com/fatedier/frp)
+ [fp-multiuser](https://github.com/gofrp/fp-multiuser)