frpc.ini 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. # trace, debug, info, warn, error
  12. log_level = info
  13. log_max_days = 3
  14. # for authentication
  15. privilege_token = 12345678
  16. # connections will be established in advance, default value is zero
  17. pool_count = 5
  18. # if tcp stream multiplexing is used, default is true, it must be same with frps
  19. tcp_mux = true
  20. # your proxy name will be changed to {user}.{proxy}
  21. user = your_name
  22. # heartbeat configure, it's not recommended to modify the default value
  23. # the default value of heartbeat_interval is 10 and heartbeat_timeout is 90
  24. # heartbeat_interval = 30
  25. # heartbeat_timeout = 90
  26. # ssh is the proxy name same as server's configuration
  27. # if user in [common] section is not empty, it will be changed to {user}.{proxy} such as your_name.ssh
  28. [ssh]
  29. # tcp | udp | http | https, default is tcp
  30. type = tcp
  31. local_ip = 127.0.0.1
  32. local_port = 22
  33. # true or false, if true, messages between frps and frpc will be encrypted, default is false
  34. use_encryption = false
  35. # if true, message will be compressed
  36. use_compression = false
  37. # remote port listen by frps
  38. remote_port = 6001
  39. [dns]
  40. type = udp
  41. local_ip = 114.114.114.114
  42. local_port = 53
  43. remote_port = 6002
  44. use_encryption = false
  45. use_compression = false
  46. # 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
  47. [web01]
  48. type = http
  49. local_ip = 127.0.0.1
  50. local_port = 80
  51. use_encryption = false
  52. use_compression = true
  53. # http username and password are safety certification for http protocol
  54. # if not set, you can access this custom_domains without certification
  55. http_user = admin
  56. http_pwd = admin
  57. # if domain for frps is frps.com, then you can access [web01] proxy by URL http://test.frps.com
  58. subdomain = web01
  59. custom_domains = web02.yourdomain.com
  60. # locations is only useful for http type
  61. locations = /,/pic
  62. host_header_rewrite = example.com
  63. [web02]
  64. type = https
  65. local_ip = 127.0.0.1
  66. local_port = 8000
  67. use_encryption = false
  68. use_compression = false
  69. subdomain = web01
  70. custom_domains = web02.yourdomain.com
  71. [unix_domain]
  72. type = tcp
  73. remote_port = 6001
  74. # if plugin is defined, local_ip and local_port is useless
  75. # plugin will handle connections got from frps
  76. plugin = unix_domain_socket
  77. # params set with prefix "plugin_" that plugin needed
  78. plugin_unix_path = /var/run/docker.sock