Skip to content

Commit

Permalink
fix: config in laravel package
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Jan 16, 2024
1 parent 7cc08f8 commit 921fa7c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions config/telegram-git-notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
$configFileStorageFolder = storage_path(
env('TGN_CONFIG_FILE_STORAGE_FOLDER', '/app/vendor/tg-notifier/jsons')
);
$routePrefix = env('TGN_DEFAULT_ROUTE_PREFIX', 'telegram-git-notifier');

return [
'defaults' => [
Expand All @@ -11,15 +12,15 @@
],

/* Set route prefix for telegram git notifier app */
'route_prefix' => env('TGN_DEFAULT_ROUTE_PREFIX', 'telegram-git-notifier'),
'route_prefix' => $routePrefix,
],

'app' => [
'name' => env('TGN_APP_NAME', 'Laravel Telegram Git Notifier'),
'timezone' => env('TIMEZONE', 'Asia/Ho_Chi_Minh'),

/* Required for the bot to work properly */
'url' => env('TGN_APP_URL', 'http://localhost:8000/telegram-git-notifier'),
'timezone' => env('TIMEZONE', 'Asia/Ho_Chi_Minh'),
'url' => env('TGN_APP_URL', env('APP_URL', 'http://localhost')).'/'.$routePrefix,
],

'bot' => [
Expand Down

0 comments on commit 921fa7c

Please sign in to comment.