diff options
| author | joonhoekim <26rote@gmail.com> | 2025-10-17 14:02:44 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-10-17 14:02:44 +0900 |
| commit | fb2c82eda27ef783f98b8567be820bec1f140fa6 (patch) | |
| tree | b0258a803678867df488ccb25467b4c2f01dc46c | |
| parent | 776699c13e967dd9db61571bb917f4a4f7aa618d (diff) | |
(김준회) POS 파일 마운트 조회 경로 수정 (Download 경로 제거)
| -rw-r--r-- | lib/pos/download-pos-file.ts | 4 | ||||
| -rw-r--r-- | lib/pos/get-pos.ts | 7 | ||||
| -rw-r--r-- | lib/pos/types.ts | 2 |
3 files changed, 8 insertions, 5 deletions
diff --git a/lib/pos/download-pos-file.ts b/lib/pos/download-pos-file.ts index 9fd6867f..d876c673 100644 --- a/lib/pos/download-pos-file.ts +++ b/lib/pos/download-pos-file.ts @@ -9,8 +9,8 @@ import { debugLog, debugError, debugSuccess, debugProcess } from '@/lib/debug-ut // 레거시: Windows 네트워크 경로 (하위 호환성을 위해 유지) const POS_BASE_PATH_LEGACY = '\\\\60.100.99.123\\ECM_NAS_PRM\\Download'; -// NFS 마운트 경로 사용 -const POS_BASE_PATH = path.posix.join(DOCUMENTUM_NFS_PATH, 'Download'); +// NFS 마운트 경로 사용 (60.191.99.123/Download가 /mnt/nfs-documentum에 마운트됨) +const POS_BASE_PATH = DOCUMENTUM_NFS_PATH; /** * POS API에서 반환된 경로의 파일을 NFS 마운트를 통해 읽어서 클라이언트에게 전달 diff --git a/lib/pos/get-pos.ts b/lib/pos/get-pos.ts index a77de247..77381a82 100644 --- a/lib/pos/get-pos.ts +++ b/lib/pos/get-pos.ts @@ -213,8 +213,8 @@ export async function accessNfsFile( }); // NFS 마운트 경로와 상대 경로를 결합 - // Download 폴더를 추가하여 전체 경로 구성 - const fullPath = path.posix.join(DOCUMENTUM_NFS_PATH, 'Download', normalizedRelativePath); + // NFS 마운트 경로(/mnt/nfs-documentum)가 이미 Download 폴더 내용을 포함하므로 Download 추가하지 않음 + const fullPath = path.posix.join(DOCUMENTUM_NFS_PATH, normalizedRelativePath); debugLog(`📍 NFS 전체 파일 경로 구성`, { fullPath }); // 경로 보안 검증 (디렉토리 탈출 방지) @@ -369,7 +369,8 @@ export async function testNfsAccess(): Promise<{ debugLog(`🧪 NFS 접근 테스트 시작`, { nfsPath: DOCUMENTUM_NFS_PATH }); // NFS 마운트 기본 경로 접근 테스트 - const testPath = path.posix.join(DOCUMENTUM_NFS_PATH, 'Download'); + // NFS 마운트 경로(/mnt/nfs-documentum)가 이미 Download 폴더 내용을 포함하므로 Download 추가하지 않음 + const testPath = DOCUMENTUM_NFS_PATH; debugLog(`🔍 테스트 경로 확인`, { testPath }); try { diff --git a/lib/pos/types.ts b/lib/pos/types.ts index 2a1c6076..d43c4149 100644 --- a/lib/pos/types.ts +++ b/lib/pos/types.ts @@ -106,4 +106,6 @@ export const POS_SOAP_BASE_URL = process.env.POS_SOAP_ENDPOINT || 'http://60.100 export const POS_SOAP_ENDPOINT = `${POS_SOAP_BASE_URL}${POS_SOAP_SEGMENT}`; // NFS 마운트 관련 설정 +// 60.191.99.123/Download 경로가 /mnt/nfs-documentum에 마운트되어 있음 +// 따라서 NFS 마운트 경로 내부에 별도의 Download 폴더를 추가하지 않음 export const DOCUMENTUM_NFS_PATH = process.env.DOCUMENTUM_NFS || '/mnt/nfs-documentum/'; |
