frps.ini 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. privilege_allow_ports = 2000-3000,3001,3003,4000-50000
  23. # pool_count in each proxy will change to max_pool_count if they exceed the maximum value
  24. max_pool_count = 100
  25. # ssh is the proxy name, client will use this name and auth_token to connect to server
  26. [ssh]
  27. type = tcp
  28. auth_token = 123
  29. bind_addr = 0.0.0.0
  30. listen_port = 6000
  31. [web01]
  32. # if type equals http, vhost_http_port must be set
  33. type = http
  34. auth_token = 123
  35. # if proxy type equals http, custom_domains must be set separated by commas
  36. custom_domains = web01.yourdomain.com,web01.yourdomain2.com
  37. [web02]
  38. # if type equals https, vhost_https_port must be set
  39. type = https
  40. auth_token = 123
  41. custom_domains = web02.yourdomain.com