# 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; } }