frpc.toml 926 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. serverAddr = "47.96.151.43"
  2. serverPort = 7000
  3. [[proxies]]
  4. name = "tcp-redis"
  5. type = "tcp"
  6. localIP = "127.0.0.1"
  7. localPort = 6379
  8. remotePort = 6379
  9. [[proxies]]
  10. name = "http80"
  11. type = "tcp"
  12. localIP = "127.0.0.1"
  13. localPort = 80
  14. remotePort = 80
  15. [[proxies]]
  16. name = "test_htts2http"
  17. type = "https"
  18. customDomains = [
  19. "xiaodingliu.niusenyun.com",
  20. "xiaodingbackend.niusenyun.com",
  21. "saasjing.niusenyun.com",
  22. "massagejing.niusenyun.com",
  23. "saasyin.niusenyun.com",
  24. "mallyin.niusenyun.com",
  25. "saas.niusenyun.com",
  26. "saast.niusenyun.com",
  27. "mall.niusenyun.com",
  28. "mallt.niusenyun.com",
  29. "massaget.niusenyun.com",
  30. "massage.niusenyun.com",
  31. "xdyin.niusenyun.com",
  32. "xdjhyuser.niusenyun.com",
  33. "xdt.niusenyun.com"
  34. ]
  35. [proxies.plugin]
  36. type = "https2http"
  37. localAddr = "127.0.0.1:80"
  38. # HTTPS 证书相关的配置
  39. crtPath = "/root/frp/cert.pem"
  40. keyPath = "/root/frp/key.pem"
  41. #hostHeaderRewrite = "127.0.0.1"
  42. requestHeaders.set.x-from-where = "frp"