frpc.ini 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. [dns]
  31. type = udp
  32. local_ip = 114.114.114.114
  33. local_port = 53
  34. # 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
  35. [web01]
  36. type = http
  37. local_ip = 127.0.0.1
  38. local_port = 80
  39. use_gzip = true
  40. pool_count = 20
  41. # http username and password are safety certification for http protoc
  42. # if not set, you can access this custom_domains without certification
  43. http_username = admin
  44. http_password = admin
  45. [web02]
  46. type = http
  47. local_ip = 127.0.0.1
  48. local_port = 8000
  49. [privilege_ssh]
  50. # if privilege_mode is enabled, this proxy will be created automatically
  51. privilege_mode = true
  52. type = tcp
  53. local_ip = 127.0.0.1
  54. local_port = 22
  55. use_encryption = true
  56. use_gzip = false
  57. remote_port = 6001
  58. [privilege_web]
  59. privilege_mode = true
  60. type = http
  61. local_ip = 127.0.0.1
  62. local_port = 80
  63. use_gzip = true
  64. custom_domains = web03.yourdomain.com
  65. host_header_rewrite = example.com