From 67349bb909dd0aa7ade81ee211b276cc827e066a Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Sat, 1 Nov 2025 00:56:39 +0800 Subject: [PATCH] =?UTF-8?q?=D0=A1=D1=81=D1=8B=D0=BB=D0=BA=D0=B0=20=D0=BD?= =?UTF-8?q?=D0=B0=20=D1=80=D0=B5=D0=BF=D0=BE=D0=B7=D0=B8=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=B8=D0=B9=20=D1=87=D0=B5=D1=80=D0=B5=D0=B7=20env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 5 +++-- README.md | 3 ++- app/Core/Bot.php | 5 ++--- config/app.php | 1 + views/details.twig | 4 ++-- views/template.twig | 6 +++--- 6 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.env.example b/.env.example index b8f60ba..be54774 100644 --- a/.env.example +++ b/.env.example @@ -3,14 +3,15 @@ ###################################### # config/app.php -APP_TITLE='Агрегатор плейлистов' +APP_TITLE='Проверка плейлистов' APP_URL=http://localhost:8080 APP_DEBUG=false APP_ENV=prod APP_TIMEZONE=Europe/Moscow PAGE_SIZE=0 +REPO_URL='https://git.axenov.dev/IPTV' -# config/bot.php +# config/api.php TG_BOT_TOKEN= TG_BOT_SECRET= diff --git a/README.md b/README.md index 2062139..329eac7 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,11 @@ Использует [playlists.ini](https://git.axenov.dev/IPTV/playlists) с описанием плейлистов для своей работы. > **Веб-сайт:** [m3u.su](https://m3u.su) -> **Зеркало:** [m3u.su](https://m3u.su) +> **Документация:** [m3u.su/docs](https://m3u.su/docs) > Исходный код: [git.axenov.dev/IPTV/web](https://git.axenov.dev/IPTV/web) > Telegram-канал: [@iptv_aggregator](https://t.me/iptv_aggregator) > Обсуждение: [@iptv_aggregator_chat](https://t.me/iptv_aggregator_chat) +> Бот: [@iptv_aggregator_bot](https://t.me/iptv_aggregator_bot) > Дополнительные сведения: [git.axenov.dev/IPTV/.profile](https://git.axenov.dev/IPTV/.profile) ## О веб-сервисе diff --git a/app/Core/Bot.php b/app/Core/Bot.php index 8887f26..88720fe 100644 --- a/app/Core/Bot.php +++ b/app/Core/Bot.php @@ -270,12 +270,11 @@ class Bot $replyText[] = '*Ресурсы и страницы*'; $replyText[] = ''; $replyText[] = '🌏 Сайт: ' . $this->escape(base_url()); - config('app.mirror_url') && $replyText[] = '🪞 Зеркало: ' . $this->escape(mirror_url()); - $replyText[] = '👩‍💻 Исходный код: ' . $this->escape('https://git.axenov.dev/IPTV'); + $replyText[] = '👩‍💻 Исходный код: ' . $this->escape(config('app.repo_url')); $replyText[] = '✈️ Telegram\-канал: @iptv\_aggregator'; $replyText[] = '✈️ Обсуждение: @iptv\_aggregator\_chat'; $replyText[] = '📚 Доп\. сведения:'; - $replyText[] = '\- ' . $this->escape('https://git.axenov.dev/IPTV/.profile'); + $replyText[] = '\- ' . $this->escape(config('app.repo_url') . '/.profile'); $replyText[] = '\- ' . $this->escape(base_url('faq')); return $this->reply(implode("\n", $replyText)); diff --git a/config/app.php b/config/app.php index 90064b7..cba193c 100644 --- a/config/app.php +++ b/config/app.php @@ -14,6 +14,7 @@ return [ 'env' => env('APP_ENV', env('IPTV_ENV', 'prod')), 'timezone' => env('APP_TIMEZONE', 'GMT'), 'page_size' => int(env('PAGE_SIZE', 10)), + 'repo_url' => env('REPO_URL', 'https://git.axenov.dev/IPTV'), 'pls_encodings' => [ 'UTF-8', 'CP1251', diff --git a/views/details.twig b/views/details.twig index d691f95..6ec568c 100644 --- a/views/details.twig +++ b/views/details.twig @@ -249,12 +249,12 @@