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