frps.ini 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. bind_addr = 0.0.0.0
  6. bind_port = 7000
  7. # if you want to support virtual host, you must set the http port for listening (optional)
  8. vhost_http_port = 80
  9. vhost_https_port = 443
  10. # if you want to configure or reload frps by dashboard, dashboard_port must be set
  11. dashboard_port = 7500
  12. # dashboard user and pwd for basic auth protect, if not set, both default value is admin
  13. dashboard_user = admin
  14. dashboard_pwd = admin
  15. # dashboard assets directory(only for debug mode)
  16. # assets_dir = ./static
  17. # console or real logFile path like ./frps.log
  18. log_file = ./frps.log
  19. # debug, info, warn, error
  20. log_level = info
  21. log_max_days = 3
  22. # if you enable privilege mode, frpc can create a proxy without pre-configure in frps when privilege_token is correct
  23. privilege_mode = true
  24. privilege_token = 12345678
  25. # heartbeat configure, it's not recommended to modify the default value
  26. # the default value of heartbeat_timeout is 30
  27. # heartbeat_timeout = 30
  28. # only allow frpc to bind ports you list, if you set nothing, there won't be any limit
  29. privilege_allow_ports = 2000-3000,3001,3003,4000-50000
  30. # pool_count in each proxy will change to max_pool_count if they exceed the maximum value
  31. max_pool_count = 100
  32. # authentication_timeout means the timeout interval (seconds) when the frpc connects frps
  33. # if authentication_timeout is zero, the time is not verified, default is 900s
  34. authentication_timeout = 900
  35. # if subdomain_host is not empty, you can set subdomain when type is http or https in frpc's configure file
  36. # when subdomain is test, the host used by routing is test.frps.com
  37. subdomain_host = frps.com
  38. # ssh is the proxy name, client will use this name and auth_token to connect to server
  39. [ssh]
  40. type = tcp
  41. auth_token = 123
  42. bind_addr = 0.0.0.0
  43. listen_port = 6000
  44. [dns]
  45. type = udp
  46. auth_token = 123
  47. bind_addr = 0.0.0.0
  48. listen_port = 5353
  49. [web01]
  50. # if type equals http, vhost_http_port must be set
  51. type = http
  52. auth_token = 123
  53. # if proxy type equals http, custom_domains must be set separated by commas
  54. custom_domains = web01.yourdomain.com,web01.yourdomain2.com
  55. [web02]
  56. # if type equals https, vhost_https_port must be set
  57. type = https
  58. auth_token = 123
  59. custom_domains = web02.yourdomain.com