赞
踩
1. 修改或创建服务端frps.ini 脚本
- # Virtual host configuration
- vhost_http_port = 7071
- #vhost_https_port = 443
- subdomain_host = 需要外网访问的网址
-
- # Dashboard configuration
- dashboard_addr = 0.0.0.0
- dashboard_port = 7500
- dashboard_user = admin
- dashboard_pwd = XXXXXX
-
- # logs
- log_file = ./frps.log
- log_level = info
- log_max_days = 3
-
- # auth token
- token = XXXXXX
-
- max_pool_count = 5
- max_ports_per_client = 0
- authentication_timeout = 900
- tcp_mux = true
2. 放入docker共享文件路径,启动docker配置
docker run --network host -d -v /usr/local/frp_server/frps.ini:/etc/frp/frps.ini --name frps snowdreamtech/frps
3.按照需求配置fprc客户端脚本启动。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。