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/{파일경로}`