Добавлены новые домены + файл включающий в себя все списки
All checks were successful
Production Build / publish (push) Successful in 18s
All checks were successful
Production Build / publish (push) Successful in 18s
This commit is contained in:
@ -2,8 +2,17 @@ FROM fholzer/nginx-brotli:latest
|
||||
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
|
||||
COPY ./ipsets /usr/share/nginx/html/ipsets
|
||||
COPY ./lists /usr/share/nginx/html/lists
|
||||
COPY ./scripts /usr/share/nginx/html/scripts
|
||||
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
RUN find /usr/share/nginx/html/lists -name "*.txt" -exec sed -i 's/#.*//g; /^$/d' {} +
|
||||
|
||||
RUN dos2unix /usr/share/nginx/html/scripts/*.sh && \
|
||||
chmod +x /usr/share/nginx/html/scripts/*.sh
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
ENTRYPOINT ["/usr/share/nginx/html/scripts/entrypoint.sh"]
|
||||
CMD ["-g", "daemon off;"]
|
||||
|
||||
1
lists/7tv.txt
Normal file
1
lists/7tv.txt
Normal file
@ -0,0 +1 @@
|
||||
7tv.app
|
||||
3
lists/anime-365.txt
Normal file
3
lists/anime-365.txt
Normal file
@ -0,0 +1,3 @@
|
||||
anime-365.ru
|
||||
b-cdn.ru
|
||||
b-cdn.net
|
||||
4
lists/facebook.txt
Normal file
4
lists/facebook.txt
Normal file
@ -0,0 +1,4 @@
|
||||
facebook.com
|
||||
fbsbx.com
|
||||
fb.com
|
||||
fbcdn.net
|
||||
1
lists/gemini.txt
Normal file
1
lists/gemini.txt
Normal file
@ -0,0 +1 @@
|
||||
gemini.google.com
|
||||
2
lists/grok.txt
Normal file
2
lists/grok.txt
Normal file
@ -0,0 +1,2 @@
|
||||
grok.com
|
||||
x.ai
|
||||
2
lists/instagram.txt
Normal file
2
lists/instagram.txt
Normal file
@ -0,0 +1,2 @@
|
||||
instagram.com
|
||||
cdninstagram.com
|
||||
1
lists/ntc.txt
Normal file
1
lists/ntc.txt
Normal file
@ -0,0 +1 @@
|
||||
ntc.party
|
||||
6
lists/openai.txt
Normal file
6
lists/openai.txt
Normal file
@ -0,0 +1,6 @@
|
||||
chatgpt.com
|
||||
openai.com
|
||||
oaistatic.com
|
||||
sora.com
|
||||
auth0.com
|
||||
oaiusercontent.com
|
||||
1
lists/rutor.txt
Normal file
1
lists/rutor.txt
Normal file
@ -0,0 +1 @@
|
||||
rutor.info
|
||||
2
lists/shikimori.txt
Normal file
2
lists/shikimori.txt
Normal file
@ -0,0 +1,2 @@
|
||||
shikimori.one
|
||||
shikimori.io
|
||||
3
lists/spotify.txt
Normal file
3
lists/spotify.txt
Normal file
@ -0,0 +1,3 @@
|
||||
spotify.com
|
||||
spotifycdn.com
|
||||
scdn.co
|
||||
7
lists/telegram.txt
Normal file
7
lists/telegram.txt
Normal file
@ -0,0 +1,7 @@
|
||||
telegram.org
|
||||
telegram.dog
|
||||
telegram.me
|
||||
telegram.space
|
||||
telesco.pe
|
||||
tg.dev
|
||||
t.me
|
||||
2
lists/twitch.txt
Normal file
2
lists/twitch.txt
Normal file
@ -0,0 +1,2 @@
|
||||
usher.ttvnw.net
|
||||
gql.twitch.tv
|
||||
15
nginx.conf
15
nginx.conf
@ -2,12 +2,17 @@ server {
|
||||
listen 80;
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
location / {
|
||||
autoindex on;
|
||||
try_files $uri $uri/ @lists;
|
||||
default_type text/plain;
|
||||
|
||||
location /ipsets/ {
|
||||
try_files $uri $uri.txt =404;
|
||||
}
|
||||
|
||||
location @lists {
|
||||
try_files /lists$uri.txt =404;
|
||||
location /lists/ {
|
||||
try_files $uri $uri.txt =404;
|
||||
}
|
||||
|
||||
location /users/ {
|
||||
try_files $uri $uri.txt =404;
|
||||
}
|
||||
}
|
||||
|
||||
12
scripts/all.sh
Normal file
12
scripts/all.sh
Normal 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
18
scripts/entrypoint.sh
Normal 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 "$@"
|
||||
Reference in New Issue
Block a user