mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-03 10:30:51 +08:00
feat: 添加·定时自动备份并上传到谷歌云存储·的功能
This commit is contained in:
10
config/cloud_storage.php
Normal file
10
config/cloud_storage.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'google_cloud' => [
|
||||
'key_file' => env('GOOGLE_CLOUD_KEY_FILE') ? base_path(env('GOOGLE_CLOUD_KEY_FILE')) : null,
|
||||
'storage_bucket' => env('GOOGLE_CLOUD_STORAGE_BUCKET'),
|
||||
],
|
||||
|
||||
];
|
||||
@@ -45,6 +45,12 @@ return [
|
||||
'ignore_exceptions' => false,
|
||||
],
|
||||
|
||||
'backup' => [
|
||||
'driver' => 'single',
|
||||
'path' => storage_path('logs/backup.log'),
|
||||
'level' => 'debug',
|
||||
],
|
||||
|
||||
'single' => [
|
||||
'driver' => 'single',
|
||||
'path' => storage_path('logs/laravel.log'),
|
||||
|
||||
Reference in New Issue
Block a user