Add Amnezia Web Panel source with PostgreSQL 17 storage.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
orohi
2026-07-26 00:02:18 +03:00
co-authored by Cursor
parent ead1c64dd1
commit 8b70d51c87
50 changed files with 21713 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
set -eu
# Start Cloudflare WARP daemon inside the container when present.
# The panel controls it through warp-cli from the Settings page.
if command -v warp-svc >/dev/null 2>&1; then
mkdir -p /var/lib/cloudflare-warp
warp-svc >/tmp/warp-svc.log 2>&1 &
echo "$!" >/tmp/warp-svc.pid
# Best-effort short wait: app can still start even if WARP service needs more time.
i=0
while [ "$i" -lt 10 ]; do
if warp-cli --accept-tos status >/tmp/warp-cli-status.log 2>&1; then
break
fi
i=$((i + 1))
sleep 1
done
fi
exec "$@"