프론트엔드 서버 기존 Nginx 구성에서 Caddy로 마이그레이션:
Some checks failed
Build Push and Restart Compose / deploy (push) Failing after 1m11s
Some checks failed
Build Push and Restart Compose / deploy (push) Failing after 1m11s
- Nginx 설정 파일(`nginx.conf`) 제거 및 Caddy 설정 파일(`Caddyfile`) 추가. - Dockerfile에서 Nginx 이미지 대신 Caddy 이미지 사용하도록 수정. - 정적 파일 경로(`/usr/share/nginx/html` → `/srv`) 변경 및 관련 설정 업데이트. - 정적 에셋 캐싱 및 SPA fallback 로직 Caddy에 맞게 재구성.
This commit is contained in:
12
frontend/Caddyfile
Normal file
12
frontend/Caddyfile
Normal file
@@ -0,0 +1,12 @@
|
||||
:80 {
|
||||
root * /srv
|
||||
file_server
|
||||
encode gzip
|
||||
|
||||
# 정적 에셋 캐싱 (해시된 파일명)
|
||||
@immutable path /_app/immutable/*
|
||||
header @immutable Cache-Control "public, max-age=31536000, immutable"
|
||||
|
||||
# SPA fallback
|
||||
try_files {path} /index.html
|
||||
}
|
||||
Reference in New Issue
Block a user