# [common] is integral section [common] # A literal address or host name for IPv6 must be enclosed # in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80" bind_addr = 0.0.0.0 bind_port = 7000 # if you want to support virtual host, you must set the http port for listening (optional) vhost_http_port = 8000 # console or real logFile path like ./frps.log log_file = /var/log/frps.log # debug, info, warn, error log_level = info log_max_days = 3 # authentication_timeout means the timeout interval (seconds) when the frpc connects frps # if authentication_timeout is zero, the time is not verified, default is 900s authentication_timeout = 900 [aria2] # if type equals http, vhost_http_port must be set type = http auth_token = yourtoken # if proxy type equals http, custom_domains must be set separated by commas custom_domains = aria2.yourdomain.com [a] # if type equals http, vhost_http_port must be set type = http auth_token = yourtoken # if proxy type equals http, custom_domains must be set separated by commas custom_domains = a.yourdomain.com
# [common] is integral section [common] # A literal address or host name for IPv6 must be enclosed # in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80" server_addr = your_ip_address server_port = 7000 # if you want to connect frps by http proxy, you can set http_proxy here or in global environment variables # http_proxy = http://user:pwd@192.168.1.128:8080 # console or real logFile path like ./frpc.log log_file = /opt/var/log/frpc.log # debug, info, warn, error log_level = error log_max_days = 3 # for authentication auth_token = yourtoken # heartbeat configure, it's not recommended to modify the default value # the default value of heartbeat_interval is 10 and heartbeat_timeout is 30 # heartbeat_interval = 10 # heartbeat_timeout = 30 [dns] type = udp local_ip = 114.114.114.114 local_port = 53 # Resolve your domain names to [server_addr] so you can use http://web01.yourdomain.com to browse web01 and http://web02.yourdomain.com to browse web02, the domains are set in frps.ini [aria2] type = http local_ip = 127.0.0.1 local_port = 8080 use_gzip = true # http username and password are safety certification for http protocol # if not set, you can access this custom_domains without certification http_user = name http_pwd = password [a] type = http local_ip = 127.0.0.1 local_port = 6800 use_gzip = true