wolfyang / entrypoint.sh
yangwfb
del /r
47bb6d7
Raw
History Blame Contribute Delete
781 Bytes
#!/bin/sh
# 1. 启动 Nginx 到后台
# 使用 -g "daemon off;" 的相反操作,让它退到后台,或者直接使用默认启动方式
echo "Starting Nginx in background..."
nginx -g "daemon off;" & # 这里的 & 会让它进入后台
# 或者如果你的 nginx 包默认不是前台运行,直接运行 nginx 即可
# nginx
# 2. 检查 Nginx 是否启动成功
if [ $? -eq 0 ]; then
echo "Nginx started successfully."
else
echo "Failed to start Nginx."
exit 1
fi
# 3. 前台运行 EasyTier
echo "Starting EasyTier Core in foreground..."
# --console-log-level "info"
exec /app/easytier-core -l "ws://127.0.0.1:7880" --no-tun --bind-device "false" --disable-ipv6 --disable-p2p --disable-udp-hole-punching --relay-network-whitelist "${RELAY_NETWORK_WHITELIST}"