frpc.toml 796 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. serverAddr = "47.96.151.43"
  2. serverPort = 7000
  3. [[proxies]]
  4. name = "php-tcp-mysql"
  5. type = "tcp"
  6. localIP = "127.0.0.1"
  7. localPort = 3306
  8. remotePort = 3306
  9. [[proxies]]
  10. name = "php-tcp-redis"
  11. type = "tcp"
  12. localIP = "127.0.0.1"
  13. localPort = 6379
  14. remotePort = 6379
  15. [[proxies]]
  16. name = "phphttp80"
  17. type = "tcp"
  18. localIP = "127.0.0.1"
  19. localPort = 80
  20. remotePort = 80
  21. [[proxies]]
  22. name = "xiaoding_htts2http"
  23. type = "https"
  24. customDomains = [
  25. "msj.xiaodingyun.cn",
  26. "msjapp.xiaodingyun.cn",
  27. "msjadmin.xiaodingyun.cn",
  28. "msjlxx.xiaodingyun.cn"
  29. # 往下面增加你的域名即可
  30. ]
  31. [proxies.plugin]
  32. type = "https2http"
  33. localAddr = "127.0.0.1:80"
  34. # HTTPS 证书相关的配置
  35. crtPath = "/root/frp/cert.pem"
  36. keyPath = "/root/frp/key.pem"
  37. #hostHeaderRewrite = "127.0.0.1"
  38. requestHeaders.set.x-from-where = "frp"