1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 12:53:54 +02:00
openwrt-packages/net/librespeed-go/files/librespeed-go.config
Tianling Shen a157e382df librespeed-go: add new package
Go backend for LibreSpeed.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-11-27 00:00:14 +08:00

48 lines
1.6 KiB
Plaintext

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'