2020-06-02 17:47:39 +08:00
|
|
|
# bind address, use empty string to bind to all interfaces
|
|
|
|
bind_address=""
|
|
|
|
# backend listen port
|
|
|
|
listen_port=8989
|
2022-07-08 18:44:49 +02:00
|
|
|
# change the base URL
|
|
|
|
# url_base="/librespeed"
|
2020-08-19 17:02:37 +08:00
|
|
|
# proxy protocol port, use 0 to disable
|
|
|
|
proxyprotocol_port=0
|
2020-06-02 17:47:39 +08:00
|
|
|
# Server location
|
2021-09-17 21:06:00 +08:00
|
|
|
server_lat=1
|
|
|
|
server_lng=1
|
2020-06-02 17:47:39 +08:00
|
|
|
# ipinfo.io API key, if applicable
|
|
|
|
ipinfo_api_key=""
|
|
|
|
|
2020-06-16 15:34:29 +08:00
|
|
|
# assets directory path, defaults to `assets` in the same directory
|
2021-09-17 21:06:00 +08:00
|
|
|
assets_path=""
|
2020-06-16 15:34:29 +08:00
|
|
|
|
2020-06-02 17:47:39 +08:00
|
|
|
# password for logging into statistics page
|
|
|
|
statistics_password="PASSWORD"
|
|
|
|
# redact IP addresses
|
|
|
|
redact_ip_addresses=false
|
|
|
|
|
2021-09-18 02:19:14 +08:00
|
|
|
# database type for statistics data, currently supports: none, memory, bolt, mysql, postgresql
|
2021-09-18 01:48:10 +08:00
|
|
|
# if none is specified, no telemetry/stats will be recorded, and no result PNG will be generated
|
2022-07-26 15:30:23 +00:00
|
|
|
database_type="memory"
|
2020-06-02 17:47:39 +08:00
|
|
|
database_hostname=""
|
|
|
|
database_name=""
|
|
|
|
database_username=""
|
|
|
|
database_password=""
|
|
|
|
|
|
|
|
# if you use `bolt` as database, set database_file to database file location
|
|
|
|
database_file="speedtest.db"
|
2022-03-27 03:47:16 +09:00
|
|
|
|
|
|
|
# TLS and HTTP/2 settings. TLS is required for HTTP/2
|
|
|
|
enable_tls=false
|
|
|
|
enable_http2=false
|
|
|
|
|
|
|
|
# if you use HTTP/2 or TLS, you need to prepare certificates and private keys
|
|
|
|
# tls_cert_file="cert.pem"
|
2022-07-26 15:30:23 +00:00
|
|
|
# tls_key_file="privkey.pem"
|