frpc_full.ini 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. # decide if exit program when first login failed, otherwise continuous relogin to frps
  23. # default is true
  24. login_fail_exit = true
  25. # communication protocol used to connect to server
  26. # now it supports tcp and kcp, default is tcp
  27. protocol = tcp
  28. # proxy names you want to start divided by ','
  29. # default is empty, means all proxies
  30. # start = ssh,dns
  31. # heartbeat configure, it's not recommended to modify the default value
  32. # the default value of heartbeat_interval is 10 and heartbeat_timeout is 90
  33. # heartbeat_interval = 30
  34. # heartbeat_timeout = 90
  35. # ssh is the proxy name same as server's configuration
  36. # if user in [common] section is not empty, it will be changed to {user}.{proxy} such as your_name.ssh
  37. [ssh]
  38. # tcp | udp | http | https, default is tcp
  39. type = tcp
  40. local_ip = 127.0.0.1
  41. local_port = 22
  42. # true or false, if true, messages between frps and frpc will be encrypted, default is false
  43. use_encryption = false
  44. # if true, message will be compressed
  45. use_compression = false
  46. # remote port listen by frps
  47. remote_port = 6001
  48. [dns]
  49. type = udp
  50. local_ip = 114.114.114.114
  51. local_port = 53
  52. remote_port = 6002
  53. use_encryption = false
  54. use_compression = false
  55. # 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
  56. [web01]
  57. type = http
  58. local_ip = 127.0.0.1
  59. local_port = 80
  60. use_encryption = false
  61. use_compression = true
  62. # http username and password are safety certification for http protocol
  63. # if not set, you can access this custom_domains without certification
  64. http_user = admin
  65. http_pwd = admin
  66. # if domain for frps is frps.com, then you can access [web01] proxy by URL http://test.frps.com
  67. subdomain = web01
  68. custom_domains = web02.yourdomain.com
  69. # locations is only useful for http type
  70. locations = /,/pic
  71. host_header_rewrite = example.com
  72. [web02]
  73. type = https
  74. local_ip = 127.0.0.1
  75. local_port = 8000
  76. use_encryption = false
  77. use_compression = false
  78. subdomain = web01
  79. custom_domains = web02.yourdomain.com
  80. [plugin_unix_domain_socket]
  81. type = tcp
  82. remote_port = 6003
  83. # if plugin is defined, local_ip and local_port is useless
  84. # plugin will handle connections got from frps
  85. plugin = unix_domain_socket
  86. # params set with prefix "plugin_" that plugin needed
  87. plugin_unix_path = /var/run/docker.sock
  88. [plugin_http_proxy]
  89. type = tcp
  90. remote_port = 6004
  91. plugin = http_proxy
  92. plugin_http_user = abc
  93. plugin_http_passwd = abc