chore: FFmpeg 설치 + Nginx /media/videos/ + docker-compose volumes + 환경변수

This commit is contained in:
2026-05-01 12:03:19 +09:00
parent 327d0b4e81
commit a7b2fc0d9d
4 changed files with 18 additions and 0 deletions

View File

@@ -33,6 +33,17 @@ server {
autoindex off;
}
# music videos — Nginx가 직접 비디오 파일 서빙
location ^~ /media/videos/ {
alias /data/videos/;
expires 1d;
add_header Cache-Control "public, max-age=86400" always;
add_header Accept-Ranges bytes always; # 비디오 스트리밍 범위 요청 지원
autoindex off;
}
# music API — 변수 기반 proxy_pass + $request_uri로 전체 경로 전달
location /api/music/ {
resolver 127.0.0.11 valid=10s;