You've already forked speedtest-go
cd20f44d20
- IP detection: Cloudflare IPv6, ULA IPv6, proxy header chain, offline GeoIP DB - Database: add SQLite (pure Go, no CGo) and MSSQL backends - API: add JSON result sharing endpoint and ID obfuscation - Frontend: add modern CSS design, design switcher, favicon - Compatibility: ?cors parameter support, human-friendly distance rounding - Update Go to 1.21, add modernc.org/sqlite and maxminddb deps
49 lines
1.5 KiB
TOML
49 lines
1.5 KiB
TOML
# bind address, use empty string to bind to all interfaces
|
|
bind_address=""
|
|
# backend listen port
|
|
listen_port=8989
|
|
# change the base URL
|
|
# url_base="/librespeed"
|
|
# proxy protocol port, use 0 to disable
|
|
proxyprotocol_port=0
|
|
# Server location
|
|
server_lat=1
|
|
server_lng=1
|
|
# ipinfo.io API key, if applicable
|
|
ipinfo_api_key=""
|
|
|
|
# assets directory path, defaults to `assets` in the same directory
|
|
assets_path=""
|
|
|
|
# password for logging into statistics page
|
|
statistics_password="PASSWORD"
|
|
# redact IP addresses
|
|
redact_ip_addresses=false
|
|
|
|
# database type for statistics data, currently supports: none, memory, bolt, mysql, postgresql, sqlite, mssql
|
|
# if none is specified, no telemetry/stats will be recorded, and no result PNG will be generated
|
|
database_type="memory"
|
|
database_hostname=""
|
|
database_name=""
|
|
database_username=""
|
|
database_password=""
|
|
# database port (optional, defaults to driver default)
|
|
database_port=""
|
|
|
|
# if you use `bolt` as database, set database_file to database file location
|
|
# if you use `sqlite` as database, set database_file to database file location
|
|
database_file="speedtest.db"
|
|
|
|
# GeoIP offline database (.mmdb format) for ISP and country detection when ipinfo.io API is not available
|
|
# This is used as a fallback, matching the PHP backend behavior.
|
|
# Leave empty to disable.
|
|
# geoip_database_file="country_asn.mmdb"
|
|
|
|
# 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"
|
|
# tls_key_file="privkey.pem"
|