frpc_full.ini 2.8 KB

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