frps.ini 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # [common] is integral section
  2. [common]
  3. bind_addr = 0.0.0.0
  4. bind_port = 7000
  5. # if you want to support virtual host, you must set the http port for listening (optional)
  6. vhost_http_port = 80
  7. vhost_https_port = 443
  8. # if you want to configure or reload frps by dashboard, dashboard_port must be set
  9. dashboard_port = 7500
  10. # dashboard assets directory(only for debug mode)
  11. assets_dir = ./assets
  12. # console or real logFile path like ./frps.log
  13. log_file = ./frps.log
  14. # debug, info, warn, error
  15. log_level = info
  16. log_max_days = 3
  17. # if you enable privilege mode, frpc can create a proxy without pre-configure in frps when privilege_token is correct
  18. privilege_mode = true
  19. privilege_token = 12345678
  20. privilege_allow_ports = 2000-3000,3001,3003,4000-50000
  21. # pool_count in each proxy will change to max_pool_count if they exceed the maximum value
  22. max_pool_count = 100
  23. # ssh is the proxy name, client will use this name and auth_token to connect to server
  24. [ssh]
  25. type = tcp
  26. auth_token = 123
  27. bind_addr = 0.0.0.0
  28. listen_port = 6000
  29. [web01]
  30. # if type equals http, vhost_http_port must be set
  31. type = http
  32. auth_token = 123
  33. # if proxy type equals http, custom_domains must be set separated by commas
  34. custom_domains = web01.yourdomain.com,web01.yourdomain2.com
  35. [web02]
  36. # if type equals https, vhost_https_port must be set
  37. type = https
  38. auth_token = 123
  39. custom_domains = web02.yourdomain.com