get-ip-prefix/config.env.example
2026-07-01 17:11:00 +03:00

35 lines
1.1 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# Рабочая директория
WORKDIR="/var/lib/bird"
# Директория для хранения скачанных списков
LIST_DIR="$WORKDIR/lists"
# Файл для хранения MD5 хеша
MD5_FILE="$WORKDIR/md5sum.txt"
# Директория для конфигурации BIRD
BIRD_DIR="/etc/bird/conf.d"
# Имена выходных файлов для BIRD
RU_OUT="ru_routes.conf"
IP_OUT="ip_routes.conf"
META_OUT="meta_routes.conf"
GOOGLE_OUT="google_routes.conf"
MICROSOFT_OUT="microsoft_routes.conf"
TELEGRAM_OUT="telegram_routes.conf"
FACEBOOK_OUT="facebook_routes.conf"
# URL для скачивания списков (примерные URL, укажите <20><>вои)
RU_URL="https://example.com/ru.lst"
IP_URL="https://example.com/ip.lst"
META_URL="https://example.com/meta.lst"
GOOGLE_URL="https://example.com/google.lst"
MICROSOFT_URL="https://example.com/microsoft.lst"
TELEGRAM_URL="https://example.com/telegram.lst"
FACEBOOK_URL="https://example.com/facebook.lst"
# Удалять комментарии из RU.lst перед генерацией конфига (true/false)
CLEAN_RU="true"