나스 서비스 준비

This commit is contained in:
2026-06-22 19:52:45 +09:00
parent 2ecf6201c0
commit 331d6c5fe9
7 changed files with 46 additions and 21 deletions

View File

@@ -3,7 +3,7 @@ FROM nginx:alpine
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
# 정적 사이트 (docker-compose build context = 프로젝트 루트)
COPY index.html cardList.html result.html login.html signup.html deckHistory.html preset.html admin.html /usr/share/nginx/html/
COPY index.html cardList.html result.html login.html signup.html deckHistory.html preset.html profile.html admin.html favicon.ico /usr/share/nginx/html/
COPY script /usr/share/nginx/html/script
COPY style /usr/share/nginx/html/style
COPY i18n /usr/share/nginx/html/i18n

View File

@@ -7,6 +7,11 @@ server {
client_max_body_size 25m;
# 공유 링크 → 덱 로드 페이지
location ~ ^/d/([A-Za-z0-9]+)$ {
return 302 /cardList.html?d=$1;
}
# API → 백엔드 컨테이너
location /api/ {
proxy_pass http://uadeck-api:3000;