chore: [config] MNG 연구 설정을 API 백엔드로 통합

- Claude AI, Google Cloud (STT/GCS), Vertex AI 서비스 설정 추가
- config/gcs.php 생성 (Google Cloud Storage 설정)
- .env에 바로빌, AI, Google Cloud 환경변수 추가
This commit is contained in:
김보곤
2026-02-20 23:02:51 +09:00
parent b576fe97e8
commit 0692eda282
2 changed files with 52 additions and 0 deletions

21
config/gcs.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
/**
* Google Cloud Storage 설정
*
* 우선순위:
* 1. DB 설정 (ai_configs 테이블) - UI에서 오버라이드 가능
* 2. 환경변수 (.env)
* 3. 레거시 파일 (/sales/apikey/)
*/
return [
// 버킷 이름
'bucket_name' => env('GCS_BUCKET_NAME'),
// 서비스 계정 파일 경로
'service_account_path' => env('GCS_SERVICE_ACCOUNT_PATH', '/var/www/mng/apikey/google_service_account.json'),
// DB 설정 사용 여부 (false면 .env만 사용)
'use_db_config' => env('GCS_USE_DB_CONFIG', true),
];

View File

@@ -58,6 +58,37 @@
'exchange_secret' => env('INTERNAL_EXCHANGE_SECRET'), 'exchange_secret' => env('INTERNAL_EXCHANGE_SECRET'),
], ],
/*
|--------------------------------------------------------------------------
| Claude AI
|--------------------------------------------------------------------------
*/
'claude' => [
'api_key' => env('CLAUDE_API_KEY'),
],
/*
|--------------------------------------------------------------------------
| Google Cloud (STT + GCS Storage)
|--------------------------------------------------------------------------
| Google Cloud 서비스 인증 및 음성인식(STT) 설정
*/
'google' => [
'credentials_path' => env('GOOGLE_APPLICATION_CREDENTIALS'),
'storage_bucket' => env('GOOGLE_STORAGE_BUCKET'),
'location' => env('GOOGLE_STT_LOCATION', 'asia-southeast1'),
],
/*
|--------------------------------------------------------------------------
| Vertex AI (Veo 영상 생성 등)
|--------------------------------------------------------------------------
*/
'vertex_ai' => [
'project_id' => env('VERTEX_AI_PROJECT_ID', 'codebridge-chatbot'),
'location' => env('VERTEX_AI_LOCATION', 'us-central1'),
],
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Barobill API (SOAP) | Barobill API (SOAP)