frpc.toml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. serverAddr = "8.137.120.225"
  2. serverPort = 7000
  3. # console or real logFile path like ./frpc.log
  4. log.to = "./logs/frpc.log"
  5. # trace, debug, info, warn, error
  6. log.level = "info"
  7. log.maxDays = 3
  8. # for authentication
  9. auth.method = "token"
  10. auth.token = "zswl@frp#token"
  11. # if tcp stream multiplexing is used, default is true, it must be same with frps
  12. transport.tcpMux = true
  13. # communication protocol used to connect to server
  14. # now it supports tcp and kcp and websocket, default is tcp
  15. transport.protocol = "tcp"
  16. # if tls_enable is true, frpc will connect frps by tls
  17. transport.tls.enable = true
  18. # [[proxies]]
  19. # name = "auth_center"
  20. # type = "tcp"
  21. # localIp = "192.168.31.98"
  22. # localPort = 8700
  23. # remotePort = 8700
  24. # transport.useEncryption = true
  25. # transport.useCompression = true
  26. #[[proxies]]
  27. #name = "pay_demo"
  28. #type = "tcp"
  29. #localIp = "192.168.31.98"
  30. #localPort = 9090
  31. #remotePort = 9090
  32. #transport.useEncryption = true
  33. #transport.useCompression = true
  34. [[proxies]]
  35. name = "pay_demo"
  36. type = "http"
  37. localIp = "192.168.31.98"
  38. localPort = 9090
  39. customDomains = ["consumerend.demo.danceyouth.cn"]
  40. transport.useEncryption = true
  41. transport.useCompression = true