wikihost-opensource/als

Another Looking-glass Server

Vue

1,541

156 commits

updated Jun 27, 2024

See the code

README

docker image build

Language: English | 简体中文

ALS - Another Looking-glass Server

Quick start

docker run -d --name looking-glass --restart always --network host wikihostinc/looking-glass-server

DEMO

If you don't want to use Docker , you can use the compiled server

Host Requirements

  • RAM: 32MB or more

How to change config

# you need pass -e KEY=VALUE to docker command
# you can find the KEY below the [Image Environment Variables]
# for example, change the listen port to 8080
docker run -d \
    --name looking-glass \
    -e HTTP_PORT=8080 \
    --restart always \
    --network host \
    wikihostinc/looking-glass-server

Environment variable table

KeyExampleDefaultDescription
LISTEN_IP127.0.0.1(all ip)which IP address will be listen use
HTTP_PORT8080which HTTP port should use
SPEEDTEST_FILE_LIST100MB 1GB1MB 10MB 100MB 1GBsize of static test files, separate with space
LOCATION"this is location"(request from http://ipapi.co)location string
PUBLIC_IPV41.1.1.1(fetch from http://ifconfig.co)The IPv4 address of the server
PUBLIC_IPV6fe80::1(fetch from http://ifconfig.co)The IPv6 address of the server
DISPLAY_TRAFFICtruetrueToggle the streaming traffic graph
ENABLE_SPEEDTESTtruetrueToggle the speedtest feature
UTILITIES_PINGtruetrueToggle the ping feature
UTILITIES_SPEEDTESTDOTNETtruetrueToggle the speedtest.net feature
UTILITIES_FAKESHELLtruetrueToggle the HTML Shell feature
UTILITIES_IPERF3truetrueToggle the iperf3 feature
UTILITIES_IPERF3_PORT_MIN3000030000iperf3 listen port range - from
UTILITIES_IPERF3_PORT_MAX3100031000iperf3 listen port range - to
SPONSOR_MESSAGE"Test message" or "/tmp/als_readme.md" or "http://some_host/114514.md"''Show server sponsor message (support markdown file, required mapping file to container)

Features

  • HTML 5 Speed Test
  • Ping - IPv4 / IPv6
  • iPerf3 server
  • Streaming traffic graph
  • Speedtest.net Client
  • Online shell box (limited commands)
  • NextTrace Support

Thanks to

https://github.com/librespeed/speedtest

https://www.jetbrains.com/

License

Code is licensed under MIT Public License.

  • If you wish to support my efforts, keep the "Powered by WIKIHOST Opensource - ALS" link intact.

Star History

Star History Chart

wikihost-opensource/als

Another Looking-glass Server

Vue

1,541

156 commits

updated Jun 27, 2024

See the code

README

docker image build

Language: English | 简体中文

ALS - Another Looking-glass Server

Quick start

docker run -d --name looking-glass --restart always --network host wikihostinc/looking-glass-server

DEMO

If you don't want to use Docker , you can use the compiled server

Host Requirements

  • RAM: 32MB or more

How to change config

# you need pass -e KEY=VALUE to docker command
# you can find the KEY below the [Image Environment Variables]
# for example, change the listen port to 8080
docker run -d \
    --name looking-glass \
    -e HTTP_PORT=8080 \
    --restart always \
    --network host \
    wikihostinc/looking-glass-server

Environment variable table

KeyExampleDefaultDescription
LISTEN_IP127.0.0.1(all ip)which IP address will be listen use
HTTP_PORT8080which HTTP port should use
SPEEDTEST_FILE_LIST100MB 1GB1MB 10MB 100MB 1GBsize of static test files, separate with space
LOCATION"this is location"(request from http://ipapi.co)location string
PUBLIC_IPV41.1.1.1(fetch from http://ifconfig.co)The IPv4 address of the server
PUBLIC_IPV6fe80::1(fetch from http://ifconfig.co)The IPv6 address of the server
DISPLAY_TRAFFICtruetrueToggle the streaming traffic graph
ENABLE_SPEEDTESTtruetrueToggle the speedtest feature
UTILITIES_PINGtruetrueToggle the ping feature
UTILITIES_SPEEDTESTDOTNETtruetrueToggle the speedtest.net feature
UTILITIES_FAKESHELLtruetrueToggle the HTML Shell feature
UTILITIES_IPERF3truetrueToggle the iperf3 feature
UTILITIES_IPERF3_PORT_MIN3000030000iperf3 listen port range - from
UTILITIES_IPERF3_PORT_MAX3100031000iperf3 listen port range - to
SPONSOR_MESSAGE"Test message" or "/tmp/als_readme.md" or "http://some_host/114514.md"''Show server sponsor message (support markdown file, required mapping file to container)

Features

  • HTML 5 Speed Test
  • Ping - IPv4 / IPv6
  • iPerf3 server
  • Streaming traffic graph
  • Speedtest.net Client
  • Online shell box (limited commands)
  • NextTrace Support

Thanks to

https://github.com/librespeed/speedtest

https://www.jetbrains.com/

License

Code is licensed under MIT Public License.

  • If you wish to support my efforts, keep the "Powered by WIKIHOST Opensource - ALS" link intact.

Star History

Star History Chart

Significant stargazers

SimonGino

9 followers · starred Mar 2023

奶粉

1 followers · starred Jul 2023

Ming Ye

43 followers · starred Jul 2023