- ApiTokenService: API 서버 토큰 교환 서비스 추가 - AuthService: 로그인 성공 시 API 토큰 교환 연동 - 레이아웃: 세션 토큰을 localStorage에 동기화 (FCM 사용) - config/services.php: exchange_secret 설정 추가 환경변수 필요: INTERNAL_EXCHANGE_SECRET (API와 동일)
68 lines
1.9 KiB
PHP
68 lines
1.9 KiB
PHP
<?php
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Third Party Services
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This file is for storing the credentials for third party services such
|
|
| as Mailgun, Postmark, AWS and more. This file provides the de facto
|
|
| location for this type of information, allowing packages to have
|
|
| a conventional file to locate the various service credentials.
|
|
|
|
|
*/
|
|
|
|
'postmark' => [
|
|
'key' => env('POSTMARK_API_KEY'),
|
|
],
|
|
|
|
'resend' => [
|
|
'key' => env('RESEND_API_KEY'),
|
|
],
|
|
|
|
'ses' => [
|
|
'key' => env('AWS_ACCESS_KEY_ID'),
|
|
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
|
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
|
|
],
|
|
|
|
'slack' => [
|
|
'notifications' => [
|
|
'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),
|
|
'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),
|
|
],
|
|
],
|
|
|
|
'gemini' => [
|
|
'api_key' => env('GEMINI_API_KEY'),
|
|
'project_id' => env('GEMINI_PROJECT_ID', 'codebridge-chatbot'),
|
|
],
|
|
|
|
'claude' => [
|
|
'api_key' => env('CLAUDE_API_KEY'),
|
|
],
|
|
|
|
'google' => [
|
|
'credentials_path' => env('GOOGLE_APPLICATION_CREDENTIALS'),
|
|
'storage_bucket' => env('GOOGLE_STORAGE_BUCKET'),
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| SAM API Server
|
|
|--------------------------------------------------------------------------
|
|
| API 로그 재전송 시 사용할 API 서버 URL
|
|
| - 로컬 Docker: http://api:80
|
|
| - 개발 서버: https://api.codebridge-x.com
|
|
| - 운영 서버: https://api.sam.kr
|
|
*/
|
|
'api' => [
|
|
'base_url' => env('API_BASE_URL'),
|
|
'key' => env('FLOW_TESTER_API_KEY'),
|
|
'exchange_secret' => env('INTERNAL_EXCHANGE_SECRET'),
|
|
],
|
|
|
|
];
|