1
0
mirror of https://github.com/Luzifer/termux-cfg.git synced 2024-09-19 01:02:55 +00:00
termux-cfg/.shortcuts/start_server

12 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