frpc.ini 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. # if you want to connect frps by http proxy, you can set http_proxy here or in global environment variables
  8. # http_proxy = http://user:pwd@192.168.1.128:8080
  9. # console or real logFile path like ./frpc.log
  10. log_file = ./frpc.log
  11. # debug, info, warn, error
  12. log_level = info
  13. log_max_days = 3
  14. # for authentication
  15. auth_token = 123
  16. # for privilege mode
  17. privilege_token = 12345678
  18. # ssh is the proxy name same as server's configuration
  19. [ssh]
  20. # tcp | http, default is tcp
  21. type = tcp
  22. local_ip = 127.0.0.1
  23. local_port = 22
  24. # true or false, if true, messages between frps and frpc will be encrypted, default is false
  25. use_encryption = true
  26. # default is false
  27. use_gzip = false
  28. # connections will be established in advance, default value is zero
  29. pool_count = 10
  30. # 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
  31. [web01]
  32. type = http
  33. local_ip = 127.0.0.1
  34. local_port = 80
  35. use_gzip = true
  36. pool_count = 20
  37. [web02]
  38. type = http
  39. local_ip = 127.0.0.1
  40. local_port = 8000
  41. [privilege_ssh]
  42. # if privilege_mode is enabled, this proxy will be created automatically
  43. privilege_mode = true
  44. type = tcp
  45. local_ip = 127.0.0.1
  46. local_port = 22
  47. use_encryption = true
  48. use_gzip = false
  49. remote_port = 6001
  50. [privilege_web]
  51. privilege_mode = true
  52. type = http
  53. local_ip = 127.0.0.1
  54. local_port = 80
  55. use_gzip = true
  56. custom_domains = web03.yourdomain.com
  57. host_header_rewrite = example.com