aboutsummaryrefslogtreecommitdiff
path: root/net/librespeed-go/files/librespeed-go.config
blob: e43dc912a565546c346a8cf3efdfa93cda04bde9 (plain)
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
config librespeed-go 'config'
	option enabled '0'

	# bind address, use empty string to bind to all interfaces
	option bind_address ''
	# backend listen port
	option listen_port '8989'

	# change the base URL
	# option url_base '/librespeed'
	# proxy protocol port, use 0 to disable
	option proxyprotocol_port '0'
	# Server location, use zeroes to fetch from API automatically
	option server_lat '0'
	option server_lng '0'
	# ipinfo.io API key, if applicable
	option ipinfo_api_key ''

	# assets directory path, defaults to `assets` in the same directory
	# if the path cannot be found, embedded default assets will be used
	option assets_path ''

	# password for logging into statistics page, change this to enable stats page
	# option statistics_password 'PASSWORD'
	# redact IP addresses (boolean)
	option redact_ip_addresses '0'

	# 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
	option database_type 'none'
	# option database_hostname ''
	# option database_name ''
	# option database_username ''
	# option database_password ''

	# if you use `bolt` as database, set database_file to database file location
	# option database_file '/etc/librespeed-go/speedtest.db'

	# TLS and HTTP/2 settings. TLS is required for HTTP/2 (boolean)
	option enable_tls '0'
	option enable_http2 '0'

	# if you use HTTP/2 or TLS, you need to prepare certificates and private keys
	# option tls_cert_file '/etc/librespeed-go/cert.pem'
	# option tls_key_file '/etc/librespeed-go/privkey.pem'