frps_full.ini 5.0 KB

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