重新部署frp和gitea。记录所做修改。

This commit is contained in:
hmo
2026-02-11 18:39:19 +08:00
parent 798bbdf6fe
commit 21ebd55787
6 changed files with 116 additions and 0 deletions

59
frps/README2.md Normal file
View File

@@ -0,0 +1,59 @@
服务器端:
centos2:
frp已经成功安装在宿主机的/opt/frp目录下文件权限设置正确。当前的安装情况如下
安装路径:
主目录:/opt/frp
可执行文件frps 和 frpc
配置文件frps.ini, frpc.ini 等
frps已经成功启动并运行让我们总结当前的状态
服务状态:
已启用开机自启
当前正在运行PID 5982
使用正确的配置文件(/opt/frp/frps.ini
配置文件:
[root@izwz90ajic0vbwwzozkri1z frp]# sed -i 's|\$(cat /opt/frp/token)|b01f360897afc5d92125f30e16c1c125|g' /opt/frp/frps.ini && cat /opt/frp/frps.ini
[common]
bind_port = 7000
dashboard_port = 7500
dashboard_user = hmo
dashboard_pwd = Git@l2345b7B
authentication_method = token
token = b01f360897afc5d92125f30e16c1c125
allow_ports = 40000-40009
vhost_http_port = 8080
vhost_https_port = 8443
客户端MH-HP):
位置D:\P\Tools3\frp
目前frpc.toml:
serverAddr = "47.106.65.108"
serverPort = 7000
auth.token = "b01f360897afc5d92125f30e16c1c125"
[[proxies]]
name = "gitea-web"
type = "http"
localIP = "127.0.0.1"
localPort = 3000
# remotePort = 6000
customDomains = ["git.yoin.fun"]
目前已经可以通过http://git.yoin.fun:7500/访问dashboard

View File

@@ -12,6 +12,7 @@
<None Include="$(MSBuildThisFileDirectory)conf.d\frps.conf" />
<None Include="$(MSBuildThisFileDirectory)frps\conf\frps.ini" />
<None Include="$(MSBuildThisFileDirectory)frps\docker-compose.yml" />
<None Include="$(MSBuildThisFileDirectory)README2.md" />
<None Include="$(MSBuildThisFileDirectory)README.md" />
</ItemGroup>
</Project>