frps.ini 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 assets directory(only for debug mode)
  13. # assets_dir = ./static
  14. # console or real logFile path like ./frps.log
  15. log_file = ./frps.log
  16. # debug, info, warn, error
  17. log_level = info
  18. log_max_days = 3
  19. # if you enable privilege mode, frpc can create a proxy without pre-configure in frps when privilege_token is correct
  20. privilege_mode = true
  21. privilege_token = 12345678
  22. # only allow frpc to bind ports you list, if you set nothing, there won't be any limit
  23. privilege_allow_ports = 2000-3000,3001,3003,4000-50000
  24. # pool_count in each proxy will change to max_pool_count if they exceed the maximum value
  25. max_pool_count = 100
  26. # ssh is the proxy name, client will use this name and auth_token to connect to server
  27. [ssh]
  28. type = tcp
  29. auth_token = 123
  30. bind_addr = 0.0.0.0
  31. listen_port = 6000
  32. [web01]
  33. # if type equals http, vhost_http_port must be set
  34. type = http
  35. auth_token = 123
  36. # if proxy type equals http, custom_domains must be set separated by commas
  37. custom_domains = web01.yourdomain.com,web01.yourdomain2.com
  38. [web02]
  39. # if type equals https, vhost_https_port must be set
  40. type = https
  41. auth_token = 123
  42. custom_domains = web02.yourdomain.com