Skip to content

[chore] IPFS 연동 설정#24

Open
jucheonsu wants to merge 8 commits intomainfrom
chore/#20
Open

[chore] IPFS 연동 설정#24
jucheonsu wants to merge 8 commits intomainfrom
chore/#20

Conversation

@jucheonsu
Copy link
Copy Markdown

@jucheonsu jucheonsu commented Jul 20, 2025

[chore] IPFS 연동 설정

😺 Issue

✅ 작업 리스트

  • application.yml IPFS 및 multipart 설정 추가
server:
  port: 8081 # 기본 포트 8080과 IPFS 포트와의 충돌을 피하기 위해 변경

  servlet:
    multipart:
      max-file-size: 50MB    # 단일 파일 업로드 최대 크기
      max-request-size: 500MB # 전체 요청 파일 최대 크기

ipfs:
  api:
    url: http://127.0.0.1:5001 # ✅ 현재는 로컬 노드 API 주소. 운영 환경에서는 공용 IPFS API로 변경 필요
    # TODO: .env 파일 등록 필요 : ${ipfs.api.url}
    # TODO: 공용 IPFS API 주소로 교체 필요 : https://ipfs.infura.io:5001/api/v0
  gateway:
    url: https://ipfs.io/ipfs/ # ✅ 공용 게이트웨이 주소 (운영 환경에서도 그대로 사용 가능)
    # TODO: .env 파일 등록 필요 : ${ipfs.gateway.url}
  • build.gradle에 IPFS 의존성 추가
repositories {
    mavenCentral()
    maven { url 'https://jitpack.io' } // IPFS 클라이언트 라이브러리용 JitPack 저장소
}

dependencies {
    implementation 'com.github.ipfs:java-ipfs-http-client:1.4.1'
}

⚙️ 작업 내용

  • server 포트 8081로 변경 (포트 충돌 방지)

  • multipart 최대 파일 크기 설정 (50MB / 500MB)

  • IPFS API, Gateway URL 환경 변수화 예정 (TODO 추가)

  • IPFS 클라이언트 라이브러리 의존성 추가

📷 테스트 / 구현 내용

  • 로컬 IPFS 노드 실행 확인
image image

💻 참고

  • ipfs 설치 및 환경 변수 설정

https://docs.ipfs.tech/install/ipfs-desktop/#windows

  • ipfs 명령어

https://docs.ipfs.tech/how-to/command-line-quick-start/#interact-with-the-node-using-the-web-console

@jucheonsu jucheonsu self-assigned this Jul 20, 2025
@jucheonsu jucheonsu added 📦 chore 세세한 변경사항 / tiny changes 🐹 천수 labels Jul 20, 2025
@jucheonsu jucheonsu linked an issue Jul 20, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐹 천수 📦 chore 세세한 변경사항 / tiny changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[chore] IPFS 연동 설정

1 participant