frps.ini 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 username and password for basic protect, if not set, both default value is admin
  13. dashboard_username = abc
  14. dashboard_password = abc
  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. # only allow frpc to bind ports you list, if you set nothing, there won't be any limit
  26. privilege_allow_ports = 2000-3000,3001,3003,4000-50000
  27. # pool_count in each proxy will change to max_pool_count if they exceed the maximum value
  28. max_pool_count = 100
  29. # authentication_timeout means the timeout interval (minute units) when the frpc connects frps
  30. # if authentication_timeout set zero, the time is not verified
  31. authentication_timeout = 15
  32. # domain for frps
  33. domain = frps.com
  34. # ssh is the proxy name, client will use this name and auth_token to connect to server
  35. [ssh]
  36. type = tcp
  37. auth_token = 123
  38. bind_addr = 0.0.0.0
  39. listen_port = 6000
  40. [web01]
  41. # if type equals http, vhost_http_port must be set
  42. type = http
  43. auth_token = 123
  44. # if proxy type equals http, custom_domains must be set separated by commas
  45. custom_domains = web01.yourdomain.com,web01.yourdomain2.com
  46. [web02]
  47. # if type equals https, vhost_https_port must be set
  48. type = https
  49. auth_token = 123
  50. custom_domains = web02.yourdomain.com