Skip to content

[Feat] MinIO 이미지 Presigned URL API 구현#41

Merged
howooyeon merged 5 commits into
developfrom
feat/#38-minio-image
May 17, 2026
Merged

[Feat] MinIO 이미지 Presigned URL API 구현#41
howooyeon merged 5 commits into
developfrom
feat/#38-minio-image

Conversation

@howooyeon

Copy link
Copy Markdown
Contributor

🧾 요약

  • MinIO 연동을 통한 이미지 업로드(Presigned URL) API 구현 및 도메인별 버킷 분리

🔗 이슈

✨ 변경 내용

  • MinioConfig 추가 (MinioClient 빈 생성 + 앱 시작 시 버킷 자동 생성)
  • 도메인별 버킷 분리 (reviews, mountains, restaurants)
  • ImageService — bucket 파라미터로 대상 버킷 선택, Presigned PUT URL 발급
  • ImageControllerGET /api/images/presigned-url?bucket=&filename=
  • 파일 확장자 검증 (jpg, jpeg, png, webp)
  • application.yaml, application-prod.yaml에 MinIO 설정 추가
  • K8s MinIO deployment/service 매니페스트 추가
  • .gitignorek8s/minio/secret.yaml 추가

✅ 확인

  • 빌드 OK
  • 테스트 OK

- MinIO 의존성 및 설정 추가
- 도메인별 버킷 분리 (reviews, mountains, restaurants)
- Presigned URL 발급 API (GET /api/images/presigned-url)
- 앱 시작 시 버킷 자동 생성
- K8s MinIO deployment/service 매니페스트 추가
@howooyeon
howooyeon requested review from JangInho and pooreumjung May 14, 2026 15:46
@howooyeon howooyeon self-assigned this May 14, 2026
@howooyeon howooyeon added the enhancement New feature or request label May 14, 2026
howooyeon added 2 commits May 15, 2026 01:33
- ALLOWED_BUCKETS를 ImageService 한 곳에서 관리하도록 통합
- posts, semofeed 버킷 추가
- 잘못된 버킷/확장자 에러 코드 분리 (IMG_400_1, IMG_400_2)

@pooreumjung pooreumjung left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니당

Comment thread src/main/java/com/semosan/api/common/config/MinioConfig.java Outdated
Comment thread k8s/minio/deployment.yaml
@howooyeon
howooyeon merged commit 01bf5b6 into develop May 17, 2026
@howooyeon
howooyeon deleted the feat/#38-minio-image branch May 21, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] MinIO 이미지 업로드 API 구현

2 participants