Ссылка на репозиторий через env

This commit is contained in:
2025-11-01 00:56:39 +08:00
parent 07692b08ce
commit 67349bb909
6 changed files with 13 additions and 11 deletions

View File

@@ -3,14 +3,15 @@
###################################### ######################################
# config/app.php # config/app.php
APP_TITLE='Агрегатор плейлистов' APP_TITLE='Проверка плейлистов'
APP_URL=http://localhost:8080 APP_URL=http://localhost:8080
APP_DEBUG=false APP_DEBUG=false
APP_ENV=prod APP_ENV=prod
APP_TIMEZONE=Europe/Moscow APP_TIMEZONE=Europe/Moscow
PAGE_SIZE=0 PAGE_SIZE=0
REPO_URL='https://git.axenov.dev/IPTV'
# config/bot.php # config/api.php
TG_BOT_TOKEN= TG_BOT_TOKEN=
TG_BOT_SECRET= TG_BOT_SECRET=

View File

@@ -5,10 +5,11 @@
Использует [playlists.ini](https://git.axenov.dev/IPTV/playlists) с описанием плейлистов для своей работы. Использует [playlists.ini](https://git.axenov.dev/IPTV/playlists) с описанием плейлистов для своей работы.
> **Веб-сайт:** [m3u.su](https://m3u.su) > **Веб-сайт:** [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) > Исходный код: [git.axenov.dev/IPTV/web](https://git.axenov.dev/IPTV/web)
> Telegram-канал: [@iptv_aggregator](https://t.me/iptv_aggregator) > Telegram-канал: [@iptv_aggregator](https://t.me/iptv_aggregator)
> Обсуждение: [@iptv_aggregator_chat](https://t.me/iptv_aggregator_chat) > Обсуждение: [@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) > Дополнительные сведения: [git.axenov.dev/IPTV/.profile](https://git.axenov.dev/IPTV/.profile)
## О веб-сервисе ## О веб-сервисе

View File

@@ -270,12 +270,11 @@ class Bot
$replyText[] = '*Ресурсы и страницы*'; $replyText[] = '*Ресурсы и страницы*';
$replyText[] = ''; $replyText[] = '';
$replyText[] = '🌏 Сайт: ' . $this->escape(base_url()); $replyText[] = '🌏 Сайт: ' . $this->escape(base_url());
config('app.mirror_url') && $replyText[] = '🪞 Зеркало: ' . $this->escape(mirror_url()); $replyText[] = '👩‍💻 Исходный код: ' . $this->escape(config('app.repo_url'));
$replyText[] = '👩‍💻 Исходный код: ' . $this->escape('https://git.axenov.dev/IPTV');
$replyText[] = '✈️ Telegram\-канал: @iptv\_aggregator'; $replyText[] = '✈️ Telegram\-канал: @iptv\_aggregator';
$replyText[] = '✈️ Обсуждение: @iptv\_aggregator\_chat'; $replyText[] = '✈️ Обсуждение: @iptv\_aggregator\_chat';
$replyText[] = '📚 Доп\. сведения:'; $replyText[] = '📚 Доп\. сведения:';
$replyText[] = '\- ' . $this->escape('https://git.axenov.dev/IPTV/.profile'); $replyText[] = '\- ' . $this->escape(config('app.repo_url') . '/.profile');
$replyText[] = '\- ' . $this->escape(base_url('faq')); $replyText[] = '\- ' . $this->escape(base_url('faq'));
return $this->reply(implode("\n", $replyText)); return $this->reply(implode("\n", $replyText));

View File

@@ -14,6 +14,7 @@ return [
'env' => env('APP_ENV', env('IPTV_ENV', 'prod')), 'env' => env('APP_ENV', env('IPTV_ENV', 'prod')),
'timezone' => env('APP_TIMEZONE', 'GMT'), 'timezone' => env('APP_TIMEZONE', 'GMT'),
'page_size' => int(env('PAGE_SIZE', 10)), 'page_size' => int(env('PAGE_SIZE', 10)),
'repo_url' => env('REPO_URL', 'https://git.axenov.dev/IPTV'),
'pls_encodings' => [ 'pls_encodings' => [
'UTF-8', 'UTF-8',
'CP1251', 'CP1251',

View File

@@ -249,12 +249,12 @@
<ul> <ul>
<li> <li>
создать pull-request в открытом репозитории проекта с удалением данных о плейлисте из файла создать pull-request в открытом репозитории проекта с удалением данных о плейлисте из файла
<a href="https://git.axenov.dev/IPTV/playlists/src/branch/master/playlists.ini" <a href="{{ config('app.repo_url') }}/playlists/src/branch/master/playlists.ini"
target="_blank" target="_blank"
>playlists.ini</a>, указав в комментарии к коммиту юридически значимую информацию; >playlists.ini</a>, указав в комментарии к коммиту юридически значимую информацию;
</li> </li>
<li> <li>
<a href="https://git.axenov.dev/IPTV/playlists/issues/new" target="_blank">создать <a href="{{ config('app.repo_url') }}/playlists/issues/new" target="_blank">создать
публичное обращение</a> в открытом репозитории проекта, указав юридически значимую публичное обращение</a> в открытом репозитории проекта, указав юридически значимую
информацию; информацию;
</li> </li>

View File

@@ -1,7 +1,7 @@
{########################################################################### {###########################################################################
# Copyright (c) 2025, Антон Аксенов # Copyright (c) 2025, Антон Аксенов
# This file is part of m3u.su project # This file is part of m3u.su project
# MIT License: https://git.axenov.dev/IPTV/web/src/branch/master/LICENSE # MIT License: {{config('app.repo_url}}/web/src/branch/master/LICENSE
###########################################################################} ###########################################################################}
<!DOCTYPE html> <!DOCTYPE html>
@@ -107,7 +107,7 @@
<a target="_blank" href="/docs" class="text-light text-decoration-none d-flex align-items-center gap-1"> <a target="_blank" href="/docs" class="text-light text-decoration-none d-flex align-items-center gap-1">
<ion-icon name="document-text-outline"></ion-icon>Документация <ion-icon name="document-text-outline"></ion-icon>Документация
</a> </a>
<a target="_blank" href="https://git.axenov.dev/IPTV" class="text-light text-decoration-none d-flex align-items-center gap-1"> <a target="_blank" href="{{ config('app.repo_url') }}" class="text-light text-decoration-none d-flex align-items-center gap-1">
<ion-icon name="code-slash-outline"></ion-icon>Исходники <ion-icon name="code-slash-outline"></ion-icon>Исходники
</a> </a>
<a target="_blank" href="https://axenov.dev" class="text-light text-decoration-none d-flex align-items-center gap-1"> <a target="_blank" href="https://axenov.dev" class="text-light text-decoration-none d-flex align-items-center gap-1">
@@ -125,7 +125,7 @@
</div> </div>
<div> <div>
<a class="small text-secondary d-inline-flex align-items-center gap-1" <a class="small text-secondary d-inline-flex align-items-center gap-1"
href="https://git.axenov.dev/IPTV/web/releases/tag/v{{ version() }}" href="{{ config('app.repo_url') }}/web/releases/tag/v{{ version() }}"
target="_blank" target="_blank"
> >
<ion-icon name="pricetag-outline"></ion-icon>v{{ version() }} <ion-icon name="pricetag-outline"></ion-icon>v{{ version() }}