1
0

frpc_full.ini 2.9 KB

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