From 5cf7952b33539815fce6ecd3ddf263b600ebb622 Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Fri, 24 Apr 2026 07:28:04 +0900 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=EC=B9=B4=ED=85=8C=EA=B3=A0=EB=A6=AC?= =?UTF-8?q?=20=EB=82=B4=EB=B9=84=20=EC=83=81=EB=8B=A8=20=EC=9D=B4=EB=8F=99?= =?UTF-8?q?=20+=20uvicorn=20proxy-headers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - +layout.svelte 상단 nav 에 오디오/비디오 추가 (문서/자료실 옆, 카테고리 계열 그룹). Sidebar 는 §2 에서 추가했던 카테고리 블록 제거하고 기존 도메인 트리 전용으로 복구 — 상단 nav 와 중복되고, 사이드바가 카테고리 탐색 1차 진입점으로 적합하지 않다는 피드백 반영. - app/Dockerfile uvicorn 에 --proxy-headers --forwarded-allow-ips=* 추가. FastAPI 의 trailing-slash 307 리다이렉트가 X-Forwarded-Proto 를 무시해 Location 헤더를 http:// 로 생성 → HTTPS 페이지에서 mixed-content block (/video 에서 목격). home-caddy → document-caddy → fastapi 체인에서 scheme 복구. Co-Authored-By: Claude Opus 4.7 (1M context) --- app/Dockerfile | 2 +- frontend/src/lib/components/Sidebar.svelte | 232 ++++----------------- frontend/src/routes/+layout.svelte | 4 + 3 files changed, 50 insertions(+), 188 deletions(-) diff --git a/app/Dockerfile b/app/Dockerfile index cc7528c..b6a66c2 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -16,4 +16,4 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . -CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] +CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--proxy-headers", "--forwarded-allow-ips", "*"] diff --git a/frontend/src/lib/components/Sidebar.svelte b/frontend/src/lib/components/Sidebar.svelte index 42fe05e..0742713 100644 --- a/frontend/src/lib/components/Sidebar.svelte +++ b/frontend/src/lib/components/Sidebar.svelte @@ -1,42 +1,14 @@