frpc.ini 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # [common] is integral section
  2. [common]
  3. # A literal address or host name for IPv6 must be enclosed
  4. # in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80"
  5. server_addr = 0.0.0.0
  6. server_port = 7000
  7. # console or real logFile path like ./frpc.log
  8. log_file = ./frpc.log
  9. # debug, info, warn, error
  10. log_level = info
  11. log_max_days = 3
  12. # for authentication
  13. auth_token = 123
  14. # for privilege mode
  15. privilege_token = 12345678
  16. # ssh is the proxy name same as server's configuration
  17. [ssh]
  18. # tcp | http, default is tcp
  19. type = tcp
  20. local_ip = 127.0.0.1
  21. local_port = 22
  22. # true or false, if true, messages between frps and frpc will be encrypted, default is false
  23. use_encryption = true
  24. # default is false
  25. use_gzip = false
  26. # connections will be established in advance, default value is zero
  27. pool_count = 10
  28. # Resolve your domain names to [server_addr] so you can use http://web01.yourdomain.com to browse web01 and http://web02.yourdomain.com to browse web02, the domains are set in frps.ini
  29. [web01]
  30. type = http
  31. local_ip = 127.0.0.1
  32. local_port = 80
  33. use_gzip = true
  34. pool_count = 20
  35. [web02]
  36. type = http
  37. local_ip = 127.0.0.1
  38. local_port = 8000
  39. [privilege_ssh]
  40. # if privilege_mode is enabled, this proxy will be created automatically
  41. privilege_mode = true
  42. type = tcp
  43. local_ip = 127.0.0.1
  44. local_port = 22
  45. use_encryption = true
  46. use_gzip = false
  47. remote_port = 6001
  48. [privilege_web]
  49. privilege_mode = true
  50. type = http
  51. local_ip = 127.0.0.1
  52. local_port = 80
  53. use_gzip = true
  54. custom_domains = web03.yourdomain.com
  55. host_header_rewrite = example.com