ALS 是一个在线工具集合。
项目地址:https://github.com/wikihost-opensource/als
Demo:http://lg.hk1-bgp.hkg.50network.com/
注:目前只支持Docker 部署
支持以下功能
docker run -d --name looking-glass --restart always --network host wikihostinc/looking-glass-server
默认占用80端口作为Web访问,IPerf3 默认端口范围为30000-31000。
默认使用主机网络。
Key | 示例 | 默认 | 说明 |
---|---|---|---|
LISTEN_IP | 127.0.0.1 | 默认使用所有IP | 监听IP |
HTTP_PORT | 80 | 80 | Web 访问端口 |
SPEEDTEST_FILE_LIST | 100MB 1GB | 1MB 10MB 100MB 1GB | 静态测试文件的大小,以空格分隔 |
LOCATION | "this is location" | (from maxmind database, ip via PUBLIC_IPV4 or PUBLIC_IPV6) | 位置字符串 |
MAXMIND_KEY | THE_KEY | (empty) | about more https://dev.maxmind.com/geoip/geolite2-free-geolocation-data |
PUBLIC_IPV4 | 1.1.1.1 | (fetch from http://ifconfig.co) | The IPv4 address of the server |
PUBLIC_IPV6 | fe80::1 | (fetch from http://ifconfig.co) | The IPv6 address of the server |
DISPLAY_TRAFFIC | true | true | Toggle the streaming traffic graph |
ENABLE_SPEEDTEST | true | true | Toggle the speedtest feature |
UTILITIES_PING | true | true | Toggle the ping feature |
UTILITIES_SPEEDTESTDOTNET | true | true | Toggle the speedtest.net feature |
UTILITIES_FAKESHELL | true | true | Toggle the HTML Shell feature |
UTILITIES_IPERF3 | true | true | Toggle the iperf3 feature |
UTILITIES_IPERF3_PORT_MIN | 30000 | 30000 | iperf3 监听端口范围 - 开始 |
UTILITIES_IPERF3_PORT_MAX | 31000 | 31000 | iperf3 监听端口范围 - 结束 |
SPONSOR_MESSAGE | "Test message" or "/tmp/als_readme.md" or "http://some_host/114514.md" | '' | 显示服务器赞助商消息(支持Markdown文件,需要映射文件到容器) |