fix(nginx): /api/image/ public gateway + /media/image/ 정적 서빙 추가
VideoStudio T5에서 누락된 image-lab의 외부 진입점. /api/internal/image/ (worker webhook 차단)만 있고 public /api/image/ 라우팅이 빠져 있어 catch-all /api/로 빠지면서 외부 호출이 잘못된 lab으로 가서 404. video-lab 패턴(line 83)을 그대로 따라 image-lab gateway + image-render 결과 SMB 파일 정적 서빙 두 블록 추가. memory: reference_nas_url_routing.md — 신규 lab 추가 시 nginx 7번째 등재 위치 영구 기록 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -47,6 +47,16 @@ server {
|
||||
autoindex off;
|
||||
}
|
||||
|
||||
# image-render 결과 정적 서빙 (Video Studio)
|
||||
location ^~ /media/image/ {
|
||||
alias /data/image/;
|
||||
|
||||
expires 1d;
|
||||
add_header Cache-Control "public, max-age=86400" always;
|
||||
|
||||
autoindex off;
|
||||
}
|
||||
|
||||
# music videos — Nginx가 직접 비디오 파일 서빙
|
||||
location ^~ /media/insta/ {
|
||||
alias /data/insta_cards/;
|
||||
@@ -94,6 +104,21 @@ server {
|
||||
proxy_connect_timeout 10s;
|
||||
}
|
||||
|
||||
# image-lab — 이미지 생성 gateway (Video Studio)
|
||||
location /api/image/ {
|
||||
resolver 127.0.0.11 valid=10s;
|
||||
set $image_backend image-lab:8000;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
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_pass http://$image_backend$request_uri;
|
||||
|
||||
proxy_read_timeout 120s;
|
||||
proxy_connect_timeout 10s;
|
||||
}
|
||||
|
||||
# realestate API
|
||||
location /api/realestate/ {
|
||||
proxy_http_version 1.1;
|
||||
|
||||
Reference in New Issue
Block a user