나스 서비스 준비
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user