chore: mkcert 기반 SSL 인증서 자동 생성 스크립트 추가#189
Conversation
Walkthrough로컬 개발 환경에서 TLS(HTTPS) 지원을 위해 mkcert를 활용한 SSL 인증서 자동 생성 스크립트가 추가되었습니다. Vite 개발 서버는 새로 생성된 인증서를 사용하도록 HTTPS 옵션이 활성화되었으며, mkcert로 생성된 인증서 파일이 Git에 커밋되지 않도록 Changes
Sequence Diagram(s)sequenceDiagram
participant Developer
participant setup-cert.sh
participant mkcert
participant FileSystem
participant ViteServer
Developer->>setup-cert.sh: 스크립트 실행
setup-cert.sh->>mkcert: mkcert 설치 여부 확인
setup-cert.sh->>mkcert: mkcert -install (CA 설치)
setup-cert.sh->>FileSystem: 인증서 파일 존재 여부 확인
alt 인증서 없음
setup-cert.sh->>mkcert: 인증서 생성 (*.gotogether.io.kr, 127.0.0.1, ::1)
mkcert->>FileSystem: 인증서 파일 저장
else 인증서 있음
setup-cert.sh->>Developer: 인증서 이미 존재 알림
end
Developer->>ViteServer: 개발 서버 실행 (vite.config.ts)
ViteServer->>FileSystem: 인증서 파일 읽기
ViteServer->>Developer: HTTPS 개발 서버 구동
Possibly related issues
Poem
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 4
🧹 Nitpick comments (1)
scripts/setup-cert.sh (1)
8-11: mkcert 설치 확인 로직 개선 필요현재 Homebrew만 언급하고 있어 다른 운영체제 사용자에게 도움이 되지 않습니다.
다음과 같이 더 포괄적인 설치 안내를 제공하세요:
- echo "❌ mkcert가 설치되어 있지 않습니다. 먼저 'brew install mkcert'로 설치해주세요." + echo "❌ mkcert가 설치되어 있지 않습니다." + echo "설치 방법:" + echo " macOS: brew install mkcert" + echo " Linux: 패키지 매니저 또는 https://github.com/FiloSottile/mkcert#installation" + echo " Windows: choco install mkcert 또는 수동 설치"
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
.gitignore(1 hunks)scripts/setup-cert.sh(1 hunks)vite.config.ts(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: storybook
🔇 Additional comments (3)
.gitignore (1)
29-30: 인증서 파일 제외 패턴이 적절합니다.mkcert로 생성된 인증서 파일을 Git에서 제외하는 패턴이 올바르게 설정되었습니다.
vite.config.ts (1)
6-6: fs 모듈 import가 적절합니다.인증서 파일을 읽기 위한 fs 모듈 import가 올바르게 추가되었습니다.
scripts/setup-cert.sh (1)
1-2: 셔뱅과 스크립트 시작이 적절합니다.Bash 스크립트로 올바르게 시작되었습니다.
Summary by CodeRabbit
.gitignore를 업데이트했습니다.