mirror of
https://github.com/headporter81/ss-front-react.git
synced 2026-12-06 07:41:11 +09:00
docs : 운영 라우팅 정리, 학습노트 10~12 추가 (다운로드 봇 원리·인스타 인증·Graph API)
SpecialSource Frontend (React) CD / deploy (push) Successful in 15s
SpecialSource Frontend (React) CD / deploy (push) Successful in 15s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
60ab3e9ff6
commit
dbefd534c7
2 files changed
+60
No files matched your search
@@ -7,6 +7,7 @@
|
||||
- `output: "export"` 정적 빌드 → nginx로 서비스. **API Route·Server Action·서버 렌더링 기능 사용 불가**
|
||||
- API 호출: 개발 `http://localhost:8080`, 운영은 nginx `/api` → 백엔드 `:18080` (8080 아님: 리다이렉트 루프 발생). `NEXT_PUBLIC_API_URL`로 덮어쓰기 가능
|
||||
- 백엔드(Java): `C:\IdeaProjects\specialsource-homepage-backend` (PC마다 다르면 수정). 빌드는 JDK 17+ 필요 (PC 기본 java가 8이면 `JAVA_HOME` 지정)
|
||||
- 운영 라우팅: `www`·루트 도메인 → Cloudflare Worker `specialsource-router` → `nas-direct.specialsource.company` → NAS Nginx Proxy Manager(:81 관리) → 컨테이너 `:18082`(이 프로젝트). `new.` → NPM → `:18081`(옛 Vue). 사이트 전환은 NPM의 `nas-direct` 항목 포트만 바꾸면 됨 (www/루트 항목을 바꿔도 Worker 때문에 반영 안 됨). Worker는 NAS 장애 시 Firebase Hosting으로 폴백하는데, Firebase에는 아직 옛 사이트가 올라가 있음
|
||||
- 배포: GitHub에 푸시(프론트 `main`, 백엔드 `master`) → 개인 Gitea로 자동 동기화 → Gitea runner가 자동 배포. **푸시 = 운영 배포**이므로, 프론트·백엔드 API가 함께 바뀌면 둘 다 푸시해야 함
|
||||
|
||||
# 작업 규칙
|
||||
|
||||
Reference in new issue
Block a user