itsm_ysm/deploy/nginx/itms.wise.ai.kr.conf
itms-merge-dev 5e5ccc0ec7 docs+build(itms): CI/CD 정본 문서·APK 게시 자산·모바일 빌드 수정 (v1.0.0 APK 게시)
- docs/CICD_PIPELINE.md 정본(LIVE) + deploy/README.md 가동중 갱신
- deploy/apk/: publish_app_manifest.sh·mobile-app.html(WISE QR)·itms-latest.json
- deploy/nginx: /mobile-app(ITMS 전용)+/downloads/(APK)+매니페스트 서빙 반영
- mobile: EAS 빌드 의존 승격(react-navigation/expo-modules-core/metro)·.easignore·eas appVersionSource

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-19 19:41:29 +09:00

46 lines
1.8 KiB
Plaintext

# itms.wise.ai.kr — ITMS 운영 리버스 프록시 (RHEL /etc/nginx/conf.d/ 배치)
# 운영서버 211.37.173.197(utimsurpai.cafe24.com). 브라우저 진입점 = front(:11020).
#
# 배치 절차:
# 1) 이 파일을 /etc/nginx/conf.d/itms.wise.ai.kr.conf 로 배치 (HTTP-only 상태)
# 2) front(:11020) 기동 확인
# 3) certbot --nginx -d itms.wise.ai.kr → 443 블록·리다이렉트 자동 주입
# 4) systemctl reload nginx
# ※ wise.ai.kr 인증서는 와일드카드 아님 → itms 서브도메인 개별 발급 필요(확인 완료).
# ※ 헬스체크는 Host 헤더 필수: curl -H "Host: itms.wise.ai.kr" http://127.0.0.1:11020/
server {
listen 80;
server_name itms.wise.ai.kr;
client_max_body_size 50m;
# ITMS 전용 모바일 앱 설치 페이지(WISE QR — itms-latest.json fetch)
location = /mobile-app {
alias /opt/itms/downloads/mobile-app.html;
default_type text/html;
}
# APK 게시 자산 (매니페스트/QR/다운로드) — dev→prod tar-over-ssh 배치 후 서빙
location = /itms-latest.json {
default_type application/json;
alias /opt/itms/downloads/itms-latest.json;
}
location = /itms-apk-qr.png {
alias /opt/itms/downloads/itms-apk-qr.png;
}
location /downloads/ {
alias /opt/itms/downloads/;
types { application/vnd.android.package-archive apk; }
default_type application/octet-stream;
add_header Content-Disposition "attachment";
}
location / {
proxy_pass http://127.0.0.1:11020;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 120s;
}
}