- geoip database
download the geoip database from offical website GeoLite2-City.tar.gz, decompress it, and put it on this program's data directory
- config/config.py
SERVER_IP = "[your websocker server address]" # your server address, do not set to 0.0.0.0
SERVER_PORT = "9999" # websocket listen port
MONITOR_PORT = ["443", "80", ] # port list your wanna monitor
- html/script/ipviking.js
wsHost: "ws://[your websocker server address]:9999/ws", // websocket server address & port
- build the nginx docker
docker build .
docker run -d -p 80:80 xxx
- run websocket server
python3 -m pip install -r requirement.txt
nohup python3 main.py &