forked from librespeed/speedtest-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.toml
47 lines (40 loc) · 1.39 KB
/
settings.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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"
# use proxy protocol on listen_port
enable_proxyprotocol = true
# allow proxyprotocol headers from these IPs
# empty list means allow all
proxyprotocol_allowed_ips = ["127.0.0.1/32"]
# deprecated use enable_proxyprotocol instead
# 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
# 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 = ""
# if you use `bolt` as database, set database_file to database file location
database_file = "speedtest.db"
# TLS and HTTP/2 settings. TLS is required for HTTP/2
enable_tls = false
enable_http2 = true
# 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"