1
0
Fork 0
mirror of https://github.com/Luzifer/termux-cfg.git synced 2024-12-20 16:51:15 +00:00
termux-cfg/.shortcuts/start_server

11 lines
307 B
Bash
Executable file

#!/data/data/com.termux/files/usr/bin/env bash
set -euo pipefail
echo "### Current IP confguration"
ip address show dev wlan0
echo "### Starting server on port 8080"
echo "Press Ctrl+C to quit"
exec /data/data/com.termux/files/home/bin/gziphttp \
--serve-dir /storage/emulated/0/public \
--listen :8080