From 7067238dfd8fbe7874f2f093892140274742eb85 Mon Sep 17 00:00:00 2001 From: shindw Date: Tue, 24 Feb 2026 09:33:04 +0900 Subject: [PATCH] =?UTF-8?q?[api]=20claude=20=EB=B3=80=EA=B2=BD=EC=82=AC?= =?UTF-8?q?=ED=95=AD=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 --- CLAUDE.md | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 72c96fc..c2065bc 100644 --- a/.gitignore +++ b/.gitignore @@ -35,6 +35,3 @@ out/ ### VS Code ### .vscode/ - -### Local only ### -gradle.properties diff --git a/CLAUDE.md b/CLAUDE.md index 6e9cc72..9dbd1e0 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -70,3 +70,37 @@ java -jar build/libs/api.jar --spring.profiles.active=local - **Jenkins**: `Jenkinsfile.pjt` - **Docker**: `Dockerfile` - **배포 스크립트**: `deploy/` 디렉토리 + +## 개발 서버 (pjt) + +### 도메인 +- **API**: `api-alist.pjt.kr` +- **파일(업로드)**: `file-alist.pjt.kr` +- **Swagger**: `https://api-alist.pjt.kr/swagger-ui/index.html` + +### Docker +- **레지스트리**: `registry.pjt.kr` +- **이미지**: `registry.pjt.kr/alist/api` +- **컨테이너명**: `alist-api` +- **포트**: `127.0.0.1:8106->8106/tcp` + +### 서버 디렉토리 (`/srv/project/alist/`) +``` +/srv/project/alist/ +├── compose/ # docker-compose 파일 +├── data/ # 데이터 +├── env/ # 환경변수 파일 +├── logs/ # 로그 +├── scripts/ # 배포/운영 스크립트 +└── uploads/ # 업로드 파일 (file-alist.pjt.kr 루트) +``` + +### Nginx +- `file-alist.pjt.kr` → `/srv/project/alist/uploads` (정적 파일 서빙) +- HTTP(80) → HTTPS(301) 리다이렉트 +- SSL: Let's Encrypt +- 직접 접근 차단 (`allow 127.0.0.1; deny all;`) + +### 파일 업로드 +- 업로드 저장 경로: `/srv/project/alist/uploads/` +- 업로드 파일 접근 URL: `https://file-alist.pjt.kr/{파일경로}`