forked from librespeed/speedtest-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigs.toml
44 lines (35 loc) · 1.45 KB
/
configs.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
# bind socket adress
bind_address="0.0.0.0"
# socket listent port, default is 8080
listen_port=8080
# you can specify the number of worker threads. default is 1
# auto: number of cpu cores, or more than 0 as desired
# increasing the count increases memory usage
worker_threads=1
# base api url /{base_url}/routes
base_url="backend"
# ipinfo.io API key, If the api-key works, the priority is with the api, if not with the offline database
ipinfo_api_key=""
# set directory of speedtest web front to server load on `/`. If it is empty, default web will be returned
assets_path="./assets" # Write without suffix separator
# password for logging into statistics page, fill this to enable stats page
stats_password=""
# redact IP addresses
redact_ip_addresses=false
# set telemetry result image theme : light, dark
# default is light
result_image_theme="light"
# database config for : mysql, postgres, sqlite, memory, or disable by write none
# after restarting the service, the in-memory database is reset
# if none is specified, no telemetry/stats will be recorded, and no result JPG will be generated
database_type="sqlite"
database_hostname="localhost"
database_name="speedtest_db"
database_username=""
database_password=""
# if you use `sqlite` as database, set database_file to database file location
database_file="speedtest.db"
# enable and use TLS option; if enable it, you need to prepare certificates and private keys
enable_tls=false
tls_cert_file=""
tls_key_file=""