Добавлены новые домены + файл включающий в себя все списки
All checks were successful
Production Build / publish (push) Successful in 18s

This commit is contained in:
2026-04-16 17:13:34 +03:00
parent 666ae5117f
commit 5b78da1edc
19 changed files with 84 additions and 5 deletions

12
scripts/all.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/sh
SOURCE_DIR="/usr/share/nginx/html/lists"
OUTPUT_FILE="$SOURCE_DIR/all.txt"
TEMP_FILE=$(mktemp)
find "$SOURCE_DIR" -maxdepth 1 -name "*.txt" ! -name "all.txt" -exec awk 1 {} + > "$TEMP_FILE"
sed 's/#.*//g' "$TEMP_FILE" | sed 's/\r//' | grep -v '^$' | sort -u > "$OUTPUT_FILE"
# Cleanup
rm "$TEMP_FILE"

18
scripts/entrypoint.sh Normal file
View File

@ -0,0 +1,18 @@
#!/bin/sh
SCRIPT_DIR="/usr/share/nginx/html/scripts"
for f in "$SCRIPT_DIR"/*.sh; do
if [ "$f" = "$SCRIPT_DIR/entrypoint.sh" ]; then
continue
fi
if [ -x "$f" ]; then
echo "=> Executing $f"
"$f"
else
echo "=> Skipping $f (not executable)"
fi
done
exec nginx "$@"