frpc.ini 2.0 KB

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