1
0

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