Files
cointrader/dashboard/ui/nginx.conf
21in7 565414c5e0 feat: add trading dashboard with API and UI components
- Introduced a new trading dashboard consisting of a FastAPI backend (`dashboard-api`) for data retrieval and a React frontend (`dashboard-ui`) for visualization.
- Implemented a log parser to monitor and store bot logs in an SQLite database.
- Configured Docker setup for both API and UI, including necessary Dockerfiles and a docker-compose configuration.
- Added setup documentation for running the dashboard and accessing its features.
- Enhanced the Jenkins pipeline to build and push the new dashboard images.
2026-03-05 20:25:45 +09:00

24 lines
563 B
Nginx Configuration File

server {
listen 3000;
root /usr/share/nginx/html;
index index.html;
# SPA — 모든 경로를 index.html로
location / {
try_files $uri $uri/ /index.html;
}
# API 프록시 → 백엔드 컨테이너
location /api/ {
proxy_pass http://dashboard-api:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
# 캐시 설정
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2?)$ {
expires 7d;
add_header Cache-Control "public, immutable";
}
}