frpc.ini 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 = false
  26. # default is false
  27. use_gzip = false
  28. [dns]
  29. type = udp
  30. local_ip = 114.114.114.114
  31. local_port = 53
  32. # 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
  33. [web01]
  34. type = http
  35. local_ip = 127.0.0.1
  36. local_port = 80
  37. use_gzip = true
  38. # connections will be established in advance, default value is zero
  39. pool_count = 20
  40. # http username and password are safety certification for http protocol
  41. # if not set, you can access this custom_domains without certification
  42. http_user = admin
  43. http_pwd = admin
  44. # if domain for frps is frps.com, then you can access [web01] proxy by URL http://test.frps.com
  45. subdomain = test
  46. [web02]
  47. type = http
  48. local_ip = 127.0.0.1
  49. local_port = 8000
  50. [privilege_ssh]
  51. # if privilege_mode is enabled, this proxy will be created automatically
  52. privilege_mode = true
  53. type = tcp
  54. local_ip = 127.0.0.1
  55. local_port = 22
  56. use_encryption = true
  57. use_gzip = false
  58. remote_port = 6001
  59. [privilege_web]
  60. privilege_mode = true
  61. type = http
  62. local_ip = 127.0.0.1
  63. local_port = 80
  64. use_gzip = true
  65. custom_domains = web03.yourdomain.com
  66. # locations is only useful for http type
  67. locations = /,/pic
  68. host_header_rewrite = example.com
  69. subdomain = dev