Open wuyuedefeng opened 3 years ago
$ docker run --restart=always --network host -d -v /etc/frp/frps.ini:/etc/frp/frps.ini --name frps snowdreamtech/frps
server vim /etc/frp/frps.ini
[common] bind_port = 3001 token = xxx vhost_http_port = 3002 vhost_https_port = 443 subdomain_host = frp.zzp.com
dashboard_port = 3004 dashboard_user = admin dashboard_pwd = xxxxxxx
### 客户端
下载 frpc文件: https://github.com/fatedier/frp/releases
> client vim /etc/frp/frpc.ini
```bash
[common]
server_addr = 43.139.xx.xx
server_port = 3001
token = xxx
# log_file = frpc.log
log_level = info
log_max_days = 7
[http1]
type = https
local_ip = alpha.xx.com
local_port = 443
subdomain = alpha
visit: http://alpha.frp.zzp.com
proxy to https://alpha.xx.com
配置代理
服务端
frps 使用: https://github.com/cloverzrg/frps-docker
配置
/var/docker/frps/conf/frps.ini
文件管理端地址:
47.xxx.xxx.xxx:3004
客户端
下载 frpc文件: https://github.com/fatedier/frp/releases
编辑
frpc.ini
启动
frpc
服务https代理