1
0

frpc.ini 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. # heartbeat configure, it's not recommended to modify the default value
  19. # the default value of heartbeat_interval is 10 and heartbeat_timeout is 30
  20. # heartbeat_interval = 10
  21. # heartbeat_timeout = 30
  22. # ssh is the proxy name same as server's configuration
  23. [ssh]
  24. # tcp | http, default is tcp
  25. type = tcp
  26. local_ip = 127.0.0.1
  27. local_port = 22
  28. # true or false, if true, messages between frps and frpc will be encrypted, default is false
  29. use_encryption = false
  30. # default is false
  31. use_gzip = false
  32. [dns]
  33. type = udp
  34. local_ip = 114.114.114.114
  35. local_port = 53
  36. # 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
  37. [web01]
  38. type = http
  39. local_ip = 127.0.0.1
  40. local_port = 80
  41. use_gzip = true
  42. # connections will be established in advance, default value is zero
  43. pool_count = 20
  44. # http username and password are safety certification for http protocol
  45. # if not set, you can access this custom_domains without certification
  46. http_user = admin
  47. http_pwd = admin
  48. # if domain for frps is frps.com, then you can access [web01] proxy by URL http://test.frps.com
  49. subdomain = test
  50. [web02]
  51. type = http
  52. local_ip = 127.0.0.1
  53. local_port = 8000
  54. [privilege_ssh]
  55. # if privilege_mode is enabled, this proxy will be created automatically
  56. privilege_mode = true
  57. type = tcp
  58. local_ip = 127.0.0.1
  59. local_port = 22
  60. use_encryption = true
  61. use_gzip = false
  62. remote_port = 6001
  63. [privilege_web]
  64. privilege_mode = true
  65. type = http
  66. local_ip = 127.0.0.1
  67. local_port = 80
  68. use_gzip = true
  69. custom_domains = web03.yourdomain.com
  70. # locations is only useful for http type
  71. locations = /,/pic
  72. host_header_rewrite = example.com
  73. subdomain = dev