Files
tk-factory-services/system2-report/web/nginx.conf
Hyungi Ahn 550633b89d feat: 3-System 분리 프로젝트 초기 코드 작성
TK-FB(공장관리+신고)와 M-Project(부적합관리)를 3개 독립 시스템으로
분리하기 위한 전체 코드 구조 작성.
- SSO 인증 서비스 (bcrypt + pbkdf2 이중 해시 지원)
- System 1: 공장관리 (TK-FB 기반, 신고 코드 제거)
- System 2: 신고 (TK-FB에서 workIssue 코드 추출)
- System 3: 부적합관리 (M-Project 기반)
- Gateway 포털 (path-based 라우팅)
- 통합 docker-compose.yml 및 배포 스크립트

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 14:40:11 +09:00

38 lines
956 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index pages/safety/issue-report.html;
# 정적 파일 캐시
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
expires 1h;
add_header Cache-Control "public, no-transform";
}
# HTML은 캐시하지 않음
location ~* \.html$ {
expires -1;
add_header Cache-Control "no-store, no-cache, must-revalidate";
}
# API 프록시 (시스템 2 API)
location /api/ {
proxy_pass http://system2-api:3005;
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;
}
# 업로드 파일
location /uploads/ {
proxy_pass http://system2-api:3005/uploads/;
}
location / {
try_files $uri $uri/ /pages/safety/issue-report.html;
}
}