added load balance support and verbose level

This commit is contained in:
yusing
2024-03-06 12:34:06 +08:00
parent a5c53a4f4f
commit 2f439233ed
25 changed files with 530 additions and 240 deletions

12
entrypoint.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
if [ "$1" == "restart" ]; then
killall go-proxy
fi
if [ "$DEBUG" == "1" ]; then
/app/go-proxy -v=$VERBOSITY -log_dir=log --stderrthreshold=0 &
if [ "$1" != "restart" ]; then
tail -f /dev/null
fi
else
/app/go-proxy -v=$VERBOSITY -log_dir=log --stderrthreshold=0 &
fi