frps_legacy_full.ini 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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. # For single "bind_addr" field, no need square brackets, like "bind_addr = ::".
  6. bind_addr = 0.0.0.0
  7. bind_port = 7000
  8. # udp port used for kcp protocol, it can be same with 'bind_port'.
  9. # if not set, kcp is disabled in frps.
  10. kcp_bind_port = 7000
  11. # udp port used for quic protocol.
  12. # if not set, quic is disabled in frps.
  13. # quic_bind_port = 7002
  14. # quic protocol options
  15. # quic_keepalive_period = 10
  16. # quic_max_idle_timeout = 30
  17. # quic_max_incoming_streams = 100000
  18. # specify which address proxy will listen for, default value is same with bind_addr
  19. # proxy_bind_addr = 127.0.0.1
  20. # if you want to support virtual host, you must set the http port for listening (optional)
  21. # Note: http port and https port can be same with bind_port
  22. vhost_http_port = 80
  23. vhost_https_port = 443
  24. # response header timeout(seconds) for vhost http server, default is 60s
  25. # vhost_http_timeout = 60
  26. # tcpmux_httpconnect_port specifies the port that the server listens for TCP
  27. # HTTP CONNECT requests. If the value is 0, the server will not multiplex TCP
  28. # requests on one single port. If it's not - it will listen on this value for
  29. # HTTP CONNECT requests. By default, this value is 0.
  30. # tcpmux_httpconnect_port = 1337
  31. # If tcpmux_passthrough is true, frps won't do any update on traffic.
  32. # tcpmux_passthrough = false
  33. # set dashboard_addr and dashboard_port to view dashboard of frps
  34. # dashboard_addr's default value is same with bind_addr
  35. # dashboard is available only if dashboard_port is set
  36. dashboard_addr = 0.0.0.0
  37. dashboard_port = 7500
  38. # dashboard user and passwd for basic auth protect
  39. dashboard_user = admin
  40. dashboard_pwd = admin
  41. # dashboard TLS mode
  42. dashboard_tls_mode = false
  43. # dashboard_tls_cert_file = server.crt
  44. # dashboard_tls_key_file = server.key
  45. # enable_prometheus will export prometheus metrics on {dashboard_addr}:{dashboard_port} in /metrics api.
  46. enable_prometheus = true
  47. # dashboard assets directory(only for debug mode)
  48. # assets_dir = ./static
  49. # console or real logFile path like ./frps.log
  50. log_file = ./frps.log
  51. # trace, debug, info, warn, error
  52. log_level = info
  53. log_max_days = 3
  54. # disable log colors when log_file is console, default is false
  55. disable_log_color = false
  56. # DetailedErrorsToClient defines whether to send the specific error (with debug info) to frpc. By default, this value is true.
  57. detailed_errors_to_client = true
  58. # authentication_method specifies what authentication method to use authenticate frpc with frps.
  59. # If "token" is specified - token will be read into login message.
  60. # If "oidc" is specified - OIDC (Open ID Connect) token will be issued using OIDC settings. By default, this value is "token".
  61. authentication_method = token
  62. # authenticate_heartbeats specifies whether to include authentication token in heartbeats sent to frps. By default, this value is false.
  63. authenticate_heartbeats = false
  64. # AuthenticateNewWorkConns specifies whether to include authentication token in new work connections sent to frps. By default, this value is false.
  65. authenticate_new_work_conns = false
  66. # auth token
  67. token = 12345678
  68. # oidc_issuer specifies the issuer to verify OIDC tokens with.
  69. # By default, this value is "".
  70. oidc_issuer =
  71. # oidc_audience specifies the audience OIDC tokens should contain when validated.
  72. # By default, this value is "".
  73. oidc_audience =
  74. # oidc_skip_expiry_check specifies whether to skip checking if the OIDC token is expired.
  75. # By default, this value is false.
  76. oidc_skip_expiry_check = false
  77. # oidc_skip_issuer_check specifies whether to skip checking if the OIDC token's issuer claim matches the issuer specified in OidcIssuer.
  78. # By default, this value is false.
  79. oidc_skip_issuer_check = false
  80. # heartbeat configure, it's not recommended to modify the default value
  81. # the default value of heartbeat_timeout is 90. Set negative value to disable it.
  82. # heartbeat_timeout = 90
  83. # user_conn_timeout configure, it's not recommended to modify the default value
  84. # the default value of user_conn_timeout is 10
  85. # user_conn_timeout = 10
  86. # only allow frpc to bind ports you list, if you set nothing, there won't be any limit
  87. allow_ports = 2000-3000,3001,3003,4000-50000
  88. # pool_count in each proxy will change to max_pool_count if they exceed the maximum value
  89. max_pool_count = 5
  90. # max ports can be used for each client, default value is 0 means no limit
  91. max_ports_per_client = 0
  92. # tls_only specifies whether to only accept TLS-encrypted connections. By default, the value is false.
  93. tls_only = false
  94. # tls_cert_file = server.crt
  95. # tls_key_file = server.key
  96. # tls_trusted_ca_file = ca.crt
  97. # if subdomain_host is not empty, you can set subdomain when type is http or https in frpc's configure file
  98. # when subdomain is test, the host used by routing is test.frps.com
  99. subdomain_host = frps.com
  100. # if tcp stream multiplexing is used, default is true
  101. # tcp_mux = true
  102. # specify keep alive interval for tcp mux.
  103. # only valid if tcp_mux is true.
  104. # tcp_mux_keepalive_interval = 60
  105. # tcp_keepalive specifies the interval between keep-alive probes for an active network connection between frpc and frps.
  106. # If negative, keep-alive probes are disabled.
  107. # tcp_keepalive = 7200
  108. # custom 404 page for HTTP requests
  109. # custom_404_page = /path/to/404.html
  110. # specify udp packet size, unit is byte. If not set, the default value is 1500.
  111. # This parameter should be same between client and server.
  112. # It affects the udp and sudp proxy.
  113. udp_packet_size = 1500
  114. # Enable golang pprof handlers in dashboard listener.
  115. # Dashboard port must be set first
  116. pprof_enable = false
  117. # Retention time for NAT hole punching strategy data.
  118. nat_hole_analysis_data_reserve_hours = 168
  119. [plugin.user-manager]
  120. addr = 127.0.0.1:9000
  121. path = /handler
  122. ops = Login
  123. [plugin.port-manager]
  124. addr = 127.0.0.1:9001
  125. path = /handler
  126. ops = NewProxy