2025-12-17 22:06:28 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| OpenAPI Spec File Path
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| api-docs.json 파일 경로
|
|
|
|
|
|
|
|
|
|
|
*/
|
2025-12-17 23:44:36 +09:00
|
|
|
'openapi_path' => env('API_EXPLORER_OPENAPI_PATH', storage_path('api-docs/api-docs-v1.json')),
|
2025-12-17 22:06:28 +09:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Default Environments
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| 기본 환경 설정 (사용자가 커스텀 환경을 추가하기 전 기본값)
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
'default_environments' => [
|
|
|
|
|
[
|
|
|
|
|
'name' => '로컬',
|
2025-12-18 15:42:01 +09:00
|
|
|
'base_url' => env('API_EXPLORER_LOCAL_URL', 'http://sam-api-1'),
|
|
|
|
|
'api_key' => env('FLOW_TESTER_API_KEY', ''),
|
2025-12-17 22:06:28 +09:00
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'name' => '개발',
|
|
|
|
|
'base_url' => 'https://api.codebridge-x.com',
|
2025-12-18 15:42:01 +09:00
|
|
|
'api_key' => env('FLOW_TESTER_API_KEY', ''),
|
2025-12-17 22:06:28 +09:00
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Proxy Settings
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| API 프록시 설정
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
'proxy' => [
|
|
|
|
|
'timeout' => 30, // 초
|
|
|
|
|
'max_body_size' => 1024 * 1024, // 1MB
|
|
|
|
|
'allowed_hosts' => [ // 화이트리스트
|
|
|
|
|
'api.sam.kr',
|
|
|
|
|
'api.codebridge-x.com',
|
2025-12-18 15:42:01 +09:00
|
|
|
'sam-api-1', // Docker 컨테이너
|
2025-12-17 22:06:28 +09:00
|
|
|
'localhost',
|
|
|
|
|
'127.0.0.1',
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| History Settings
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| 히스토리 설정
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
'history' => [
|
|
|
|
|
'max_entries' => 100, // 사용자당 최대
|
|
|
|
|
'retention_days' => 30, // 보관 기간
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Security Settings
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| 보안 설정
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
'security' => [
|
|
|
|
|
'encrypt_tokens' => true, // API Key/Token 암호화
|
|
|
|
|
'mask_sensitive_headers' => [ // 히스토리에서 마스킹
|
|
|
|
|
'Authorization',
|
|
|
|
|
'X-API-KEY',
|
|
|
|
|
'Cookie',
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Cache Settings
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| OpenAPI 스펙 캐싱 설정
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
'cache' => [
|
|
|
|
|
'enabled' => true,
|
|
|
|
|
'ttl' => 3600, // 1시간
|
|
|
|
|
'key' => 'api_explorer_openapi_spec',
|
|
|
|
|
],
|
|
|
|
|
];
|