Files
sam-api/config/fcm.php

65 lines
2.0 KiB
PHP
Raw Normal View History

<?php
return [
/*
|--------------------------------------------------------------------------
| FCM Project ID
|--------------------------------------------------------------------------
|
| Firebase 프로젝트 ID (Firebase Console에서 확인)
|
*/
'project_id' => env('FCM_PROJECT_ID'),
/*
|--------------------------------------------------------------------------
| Service Account JSON Path
|--------------------------------------------------------------------------
|
| Firebase Admin SDK 서비스 계정 JSON 파일 경로
| storage_path() 기준 상대 경로 또는 절대 경로
|
*/
'service_account_path' => env('FCM_SA_PATH', 'app/firebase-service-account.json'),
/*
|--------------------------------------------------------------------------
| FCM HTTP v1 Endpoint
|--------------------------------------------------------------------------
*/
'endpoint' => 'https://fcm.googleapis.com/v1/projects/{project_id}/messages:send',
/*
|--------------------------------------------------------------------------
| Android Notification Channels
|--------------------------------------------------------------------------
|
| 앱에서 정의된 알림 채널 ID 매핑
|
*/
'channels' => [
'default' => 'push_default',
'urgent' => 'push_urgent',
],
/*
|--------------------------------------------------------------------------
| Default Settings
|--------------------------------------------------------------------------
*/
'defaults' => [
'channel_id' => 'push_default',
'priority' => 'high',
'ttl' => '86400s', // 24시간
],
/*
|--------------------------------------------------------------------------
| Logging
|--------------------------------------------------------------------------
*/
'logging' => [
'enabled' => env('FCM_LOGGING_ENABLED', true),
'channel' => env('FCM_LOG_CHANNEL', 'stack'),
],
];