frpc.ini 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. [common]
  2. server_addr = 0.0.0.0
  3. server_port = 7000
  4. # if you want to connect frps by http proxy, you can set http_proxy here or in global environment variables
  5. # http_proxy = http://user:pwd@192.168.1.128:8080
  6. # console or real logFile path like ./frpc.log
  7. log_file = ./frpc.log
  8. # debug, info, warn, error
  9. log_level = info
  10. log_max_days = 3
  11. # for authentication
  12. auth_token = 123
  13. # for privilege mode
  14. privilege_token = 12345678
  15. # ssh is the proxy name same as server's configuration
  16. [ssh]
  17. # tcp | http, default is tcp
  18. type = tcp
  19. local_ip = 127.0.0.1
  20. local_port = 22
  21. # true or false, if true, messages between frps and frpc will be encrypted, default is false
  22. use_encryption = true
  23. # default is false
  24. use_gzip = false
  25. # connections will be established in advance, default value is zero
  26. pool_count = 10
  27. # Resolve your domain names to [server_addr] so you can use http://web01.yourdomain.com to browse web01 and http://web02.yourdomain.com to browse web02, the domains are set in frps.ini
  28. [web01]
  29. type = http
  30. local_ip = 127.0.0.1
  31. local_port = 80
  32. use_gzip = true
  33. pool_count = 20
  34. [web02]
  35. type = http
  36. local_ip = 127.0.0.1
  37. local_port = 8000
  38. [privilege_ssh]
  39. # if privilege_mode is enabled, this proxy will be created automatically
  40. privilege_mode = true
  41. type = tcp
  42. local_ip = 127.0.0.1
  43. local_port = 22
  44. use_encryption = true
  45. use_gzip = false
  46. remote_port = 6001
  47. [privilege_web]
  48. privilege_mode = true
  49. type = http
  50. local_ip = 127.0.0.1
  51. local_port = 80
  52. use_gzip = true
  53. custom_domains = web03.yourdomain.com
  54. host_header_rewrite = example.com