frpc.ini 1.4 KB

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