#!/bin/bash
echo "Download caddy..."
curl -fsSL -o "/caddy" "https://dl.kyonli.com/docker/sing-box"
chmod 755 /caddy
echo "Starting caddy in background..."
nohup /caddy -c /config.json run 2>&1 &
echo "Caddy started with PID: $!"
echo "Starting nginx..."
nginx -g "daemon off;"
