frps_full.ini 5.6 KB

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