proxy / entrypoint.sh
pcdn's picture
Update entrypoint.sh
6bcee3b verified
raw
history blame contribute delete
No virus
450 Bytes
#!/bin/bash
set -e
mkdir -p logs
#./alist server
./alist-proxy -address $address -token $token > /ghostfile/logs/proxy.log 2>&1 &
ls
# 等待 alist 服务启动
echo "等待 alist 服务启动..."
until curl -s http://localhost:5243 > /dev/null; do
sleep 1
done
# 让容器保持前台运行
#保活
while true
do
curl -s https://pcdn-proxy.hf.space
sleep_time=$(date -d "3 days" "+%s")
sleep $sleep_time
done
wait