Skip to content

Commit

Permalink
Modify frps configurations. Edit README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ARTI5T committed Nov 11, 2023
1 parent bb3191e commit 3ec861d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
- docker, docker compose

## 部署
1. 创建并编辑`docker-compose.yml`,并修改尖括号中的内容。其中,建议为`FRPS_AUTH_TOKEN`生成随机字符串。**不需要双引号。**
1. 创建并编辑`docker-compose.yml`,并修改尖括号中的内容。建议为`FRPS_AUTH_TOKEN`生成随机字符串。**不需要双引号。**`<MUA CODE>`大写。

```
version: "3.8"
Expand All @@ -22,7 +23,6 @@
- UNION_ENTRY_ID=<MUA CODE>
- UNION_SYNC_AUTH_TOKEN=<UNION API TOKEN>
- FRPS_AUTH_TOKEN=<RANDOM STRING>
restart: always
ports:
- "7001:7001"
- "7002:7002"
Expand All @@ -34,9 +34,9 @@
> 这个项目使用的Docker镜像基于[itzg/bungeecord](https://hub.docker.com/r/itzg/bungeecord)。可以在这里找到进阶配置的说明。
2. 使用该命令启动:`docker-compose run entry`。首次启动时,会自动设置插件和Velocity的配置,配置完成后会自动关闭。这时,你可以安装别的插件或者按需修改你的设置。
2. 使用该命令启动:`docker compose run entry`。首次启动时,会自动设置插件和Velocity的配置,配置完成后会自动关闭。这时,你可以安装别的插件或者按需修改你的设置。
3. 配置完成后,联系Union Lobby管理员,并提交`server/union`内的文件,以及你的域名或IP。
## 运行
使用相同的命令`docker-compose run entry`即可启动。每一次启动前,会自动检查更新。
使用相同的命令`docker compose run entry`即可启动。每一次启动前,会自动检查更新。
4 changes: 2 additions & 2 deletions frp/conf-available/frps-webserver.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[[webServer]]
port = {{ .Envs.FRPS_WEBSERVER_PORT }}
user = {{ .Envs.FRPS_WEBSERVER_USER }}
password = {{ .Envs.FRPS_WEBSERVER_PASSWORD }}
user = "{{ .Envs.FRPS_WEBSERVER_USER }}"
password = "{{ .Envs.FRPS_WEBSERVER_PASSWORD }}"
2 changes: 1 addition & 1 deletion frp/frps-mua-entry-main.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ allowPorts = [
{ start = 10000, end = 19999 }
]

auth.token = {{ .Envs.FRPS_AUTH_TOKEN }}
auth.token = "{{ .Envs.FRPS_AUTH_TOKEN }}"

includes = ["./conf-enabled/*"]

Expand Down

0 comments on commit 3ec861d

Please sign in to comment.