mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 04:09:55 +09:00
11 lines
357 B
Bash
Executable file
11 lines
357 B
Bash
Executable file
PROXYDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
PORT=${PORT:-9000}
|
|
|
|
PROXYBIN=${PROXYBIN:-"$(which mitmdump)"}
|
|
ARGS="-s '$PROXYDIR/proxy.py' -p $PORT"
|
|
if [[ ! -z "$AUTH" ]]; then
|
|
ARGS="$ARGS --singleuser=$AUTH"
|
|
fi
|
|
PIDFILE="$PROXYDIR/proxy.pid"
|
|
|
|
start-stop-daemon --start --background --pidfile $PIDFILE --make-pidfile --exec $PROXYBIN -- $ARGS
|