frps_full.ini 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. # udp port to help make udp hole to penetrate nat
  8. bind_udp_port = 7001
  9. # udp port used for kcp protocol, it can be same with 'bind_port'
  10. # if not set, kcp is disabled in frps
  11. kcp_bind_port = 7000
  12. # specify which address proxy will listen for, default value is same with bind_addr
  13. # proxy_bind_addr = 127.0.0.1
  14. # if you want to support virtual host, you must set the http port for listening (optional)
  15. # Note: http port and https port can be same with bind_port
  16. vhost_http_port = 80
  17. vhost_https_port = 443
  18. # response header timeout(seconds) for vhost http server, default is 60s
  19. # vhost_http_timeout = 60
  20. # TcpMuxHttpConnectPort specifies the port that the server listens for TCP
  21. # HTTP CONNECT requests. If the value is 0, the server will not multiplex TCP
  22. # requests on one single port. If it's not - it will listen on this value for
  23. # HTTP CONNECT requests. By default, this value is 0.
  24. # tcpmux_httpconnect_port = 1337
  25. # set dashboard_addr and dashboard_port to view dashboard of frps
  26. # dashboard_addr's default value is same with bind_addr
  27. # dashboard is available only if dashboard_port is set
  28. dashboard_addr = 0.0.0.0
  29. dashboard_port = 7500
  30. # dashboard user and passwd for basic auth protect, if not set, both default value is admin
  31. dashboard_user = admin
  32. dashboard_pwd = admin
  33. # enable_prometheus will export prometheus metrics on {dashboard_addr}:{dashboard_port} in /metrics api.
  34. enable_prometheus = true
  35. # dashboard assets directory(only for debug mode)
  36. # assets_dir = ./static
  37. # console or real logFile path like ./frps.log
  38. log_file = ./frps.log
  39. # trace, debug, info, warn, error
  40. log_level = info
  41. log_max_days = 3
  42. # disable log colors when log_file is console, default is false
  43. disable_log_color = false
  44. # DetailedErrorsToClient defines whether to send the specific error (with debug info) to frpc. By default, this value is true.
  45. detailed_errors_to_client = true
  46. # AuthenticationMethod specifies what authentication method to use authenticate frpc with frps.
  47. # If "token" is specified - token will be read into login message.
  48. # If "oidc" is specified - OIDC (Open ID Connect) token will be issued using OIDC settings. By default, this value is "token".
  49. authentication_method = token
  50. # AuthenticateHeartBeats specifies whether to include authentication token in heartbeats sent to frps. By default, this value is false.
  51. authenticate_heartbeats = false
  52. # AuthenticateNewWorkConns specifies whether to include authentication token in new work connections sent to frps. By default, this value is false.
  53. authenticate_new_work_conns = false
  54. # auth token
  55. token = 12345678
  56. # OidcClientId specifies the client ID to use to get a token in OIDC authentication if AuthenticationMethod == "oidc".
  57. # By default, this value is "".
  58. oidc_client_id =
  59. # OidcClientSecret specifies the client secret to use to get a token in OIDC authentication if AuthenticationMethod == "oidc".
  60. # By default, this value is "".
  61. oidc_client_secret =
  62. # OidcAudience specifies the audience of the token in OIDC authentication if AuthenticationMethod == "oidc". By default, this value is "".
  63. oidc_audience =
  64. # OidcTokenEndpointUrl specifies the URL which implements OIDC Token Endpoint.
  65. # It will be used to get an OIDC token if AuthenticationMethod == "oidc". By default, this value is "".
  66. oidc_token_endpoint_url =
  67. # heartbeat configure, it's not recommended to modify the default value
  68. # the default value of heartbeat_timeout is 90
  69. # heartbeat_timeout = 90
  70. # only allow frpc to bind ports you list, if you set nothing, there won't be any limit
  71. allow_ports = 2000-3000,3001,3003,4000-50000
  72. # pool_count in each proxy will change to max_pool_count if they exceed the maximum value
  73. max_pool_count = 5
  74. # max ports can be used for each client, default value is 0 means no limit
  75. max_ports_per_client = 0
  76. # TlsOnly specifies whether to only accept TLS-encrypted connections. By default, the value is false.
  77. tls_only = false
  78. # if subdomain_host is not empty, you can set subdomain when type is http or https in frpc's configure file
  79. # when subdomain is test, the host used by routing is test.frps.com
  80. subdomain_host = frps.com
  81. # if tcp stream multiplexing is used, default is true
  82. tcp_mux = true
  83. # custom 404 page for HTTP requests
  84. # custom_404_page = /path/to/404.html
  85. [plugin.user-manager]
  86. addr = 127.0.0.1:9000
  87. path = /handler
  88. ops = Login
  89. [plugin.port-manager]
  90. addr = 127.0.0.1:9001
  91. path = /handler
  92. ops = NewProxy