From 9fb3de6e0ae23cbd518cb36872b46e84831f0d22 Mon Sep 17 00:00:00 2001 From: hyungi Date: Thu, 11 Jun 2026 11:08:59 +0900 Subject: [PATCH] =?UTF-8?q?fix(eid):=20Caddyfile=20encode=20=EC=9D=91?= =?UTF-8?q?=EB=8B=B5=20=EB=A7=A4=EC=B2=98=20=EB=AC=B8=EB=B2=95=20=E2=80=94?= =?UTF-8?q?=20header=20=ED=95=84=EB=93=9C=C2=B7=EA=B0=92=20=ED=95=9C=20?= =?UTF-8?q?=EC=8C=8D=EC=94=A9(=EC=97=AC=EB=9F=AC=20=EC=A4=84=20OR)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 한 줄 다중 값은 'malformed header matcher' 파싱 에러로 caddy 기동 실패 (로컬 E2E 라이브 기동에서 검출 — compose build 는 못 잡는 결함). HTML gzip 동작 + SSE(text/event-stream) 비압축 증분 스트리밍 라이브 검증 완료. Co-Authored-By: Claude Fable 5 --- Caddyfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Caddyfile b/Caddyfile index a78647f..06dbb83 100644 --- a/Caddyfile +++ b/Caddyfile @@ -11,10 +11,19 @@ http://document.hyungi.net { # 명시 Content-Type match — 기본 match 의 text/* 는 text/event-stream 까지 포함해 # SSE(/api/eid/chat)의 첫 ~512B 를 gzip 버퍼링함. SSE 제외, 기존 압축 대상은 보존. + # (응답 매처는 header <필드> <값> 한 쌍씩 — 여러 줄 = OR. 한 줄 다중 값은 파싱 에러) encode { gzip match { - header Content-Type text/html* text/css* text/plain* text/xml* text/javascript* application/json* application/javascript* application/xml* image/svg+xml* + header Content-Type text/html* + header Content-Type text/css* + header Content-Type text/plain* + header Content-Type text/xml* + header Content-Type text/javascript* + header Content-Type application/json* + header Content-Type application/javascript* + header Content-Type application/xml* + header Content-Type image/svg+xml* } }