frps_full.ini 5.7 KB

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