frpc.ini 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. privilege_token = 12345678
  16. # connections will be established in advance, default value is zero
  17. pool_count = 5
  18. # your proxy name will be changed to {user}.{proxy}
  19. user = your_name
  20. # heartbeat configure, it's not recommended to modify the default value
  21. # the default value of heartbeat_interval is 10 and heartbeat_timeout is 30
  22. # heartbeat_interval = 10
  23. # heartbeat_timeout = 30
  24. # ssh is the proxy name same as server's configuration
  25. # if user in [common] section is not empty, it will be changed to {user}.{proxy} such as your_name.ssh
  26. [ssh]
  27. # tcp | udp | http | https, default is tcp
  28. type = tcp
  29. local_ip = 127.0.0.1
  30. local_port = 22
  31. # true or false, if true, messages between frps and frpc will be encrypted, default is false
  32. use_encryption = false
  33. # if true, message will be compressed
  34. use_compression = false
  35. # remote port listen by frps
  36. remote_port = 6001
  37. [dns]
  38. type = udp
  39. local_ip = 114.114.114.114
  40. local_port = 53
  41. # 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
  42. [web01]
  43. type = http
  44. local_ip = 127.0.0.1
  45. local_port = 80
  46. use_compression = true
  47. # http username and password are safety certification for http protocol
  48. # if not set, you can access this custom_domains without certification
  49. http_user = admin
  50. http_pwd = admin
  51. # if domain for frps is frps.com, then you can access [web01] proxy by URL http://test.frps.com
  52. subdomain = web01
  53. [web02]
  54. type = http
  55. local_ip = 127.0.0.1
  56. local_port = 8000
  57. use_encryption = false
  58. use_compression = false
  59. custom_domains = web02.yourdomain.com
  60. # locations is only useful for http type
  61. locations = /,/pic
  62. host_header_rewrite = example.com