Skip to content

Commit 39c01ea

Browse files
committed
update config
1 parent cb2e9e8 commit 39c01ea

File tree

1 file changed

+32
-7
lines changed

1 file changed

+32
-7
lines changed

config/telegram-git-notifier.php

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,55 @@
1010
'bot' => [
1111
'token' => env('TELEGRAM_BOT_TOKEN', ''),
1212
'chat_id' => env('TELEGRAM_BOT_CHAT_ID', ''),
13-
'notify_chat_ids' => explode(
14-
',',
15-
env('TELEGRAM_NOTIFY_CHAT_IDS', '')
16-
),
13+
'notify_chat_ids' => env('TELEGRAM_NOTIFY_CHAT_IDS', '')
1714
],
1815

1916
'author' => [
20-
'discussion' => env('TGN_AUTHOR_CONTACT', 'https://t.me/tannp27'),
17+
'discussion' => env('TGN_AUTHOR_CONTACT', 'https://t.me/tannp27'),
2118
'source_code' => env(
2219
'TGN_AUTHOR_SOURCE_CODE',
2320
'https://github.com/lbiltech/laravel-telegram-git-notifier'
2421
),
2522
],
2623

24+
'data_file' => [
25+
'setting' => env(
26+
'TGN_PATH_SETTING',
27+
storage_path('/app/tgn-json/tgn-settings.json')
28+
),
29+
30+
'platform' => [
31+
'gitlab' => env(
32+
'TGN_PATH_PLATFORM_GITLAB',
33+
storage_path('/app/tgn-json/gitlab-events.json')
34+
),
35+
'github' => env(
36+
'TGN_PATH_PLATFORM_GITHUB',
37+
storage_path('/app/tgn-json/github-events.json')
38+
),
39+
],
40+
],
41+
2742
'view' => [
28-
'event' => [
43+
'default' => env(
44+
'TGN_VIEW_DEFAULT',
45+
base_path('resources/views/vendor/laravel-telegram-git-notify')
46+
),
47+
48+
'path' => env('TGN_VIEW_PATH', 'resources/views'),
49+
50+
'event' => [
2951
'default' => env('TGN_VIEW_EVENT_DEFAULT', 'default'),
3052
],
53+
3154
'globals' => [
3255
'access_denied' => env(
3356
'TGN_VIEW_GLOBALS_ACCESS_DENIED',
3457
'globals.access_denied'
3558
),
3659
],
37-
'tools' => [
60+
61+
'tools' => [
3862
'settings' => env(
3963
'TGN_VIEW_TOOL_SETTING',
4064
'tools.settings'
@@ -53,4 +77,5 @@
5377
),
5478
],
5579
],
80+
5681
];

0 commit comments

Comments
 (0)