mirror of
https://github.com/Luzifer/termux-cfg.git
synced 2024-11-08 14:30:00 +00:00
11 lines
307 B
Bash
Executable file
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
|