frpc.ini 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. # 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
  25. [web01]
  26. type = http
  27. local_ip = 127.0.0.1
  28. local_port = 80
  29. use_gzip = true
  30. [web02]
  31. type = http
  32. local_ip = 127.0.0.1
  33. local_port = 8000
  34. [privilege_ssh]
  35. # if privilege_mode is enabled, this proxy will be created automatically
  36. privilege_mode = true
  37. type = tcp
  38. local_ip = 127.0.0.1
  39. local_port = 22
  40. use_encryption = true
  41. use_gzip = false
  42. remote_port = 6001
  43. [privilege_web]
  44. privilege_mode = true
  45. type = http
  46. local_ip = 127.0.0.1
  47. local_port = 80
  48. use_gzip = true
  49. custom_domains = web03.yourdomain.com