frpc.ini 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 protocol
  42. # if not set, you can access this custom_domains without certification
  43. http_user = admin
  44. http_pwd = admin
  45. # if domain for frps is frps.com, then you can access [web01] proxy by URL http://test.frps.com
  46. subdomain = test
  47. [web02]
  48. type = http
  49. local_ip = 127.0.0.1
  50. local_port = 8000
  51. [privilege_ssh]
  52. # if privilege_mode is enabled, this proxy will be created automatically
  53. privilege_mode = true
  54. type = tcp
  55. local_ip = 127.0.0.1
  56. local_port = 22
  57. use_encryption = true
  58. use_gzip = false
  59. remote_port = 6001
  60. [privilege_web]
  61. privilege_mode = true
  62. type = http
  63. local_ip = 127.0.0.1
  64. local_port = 80
  65. use_gzip = true
  66. custom_domains = web03.yourdomain.com
  67. host_header_rewrite = example.com
  68. subdomain = dev