mirror of
https://github.com/bnair123/MusicAnalyser.git
synced 2026-02-25 19:56:06 +00:00
- Created `frontend/` React+Vite app using Ant Design (Dark Theme). - Implemented `App.jsx` to display listening history and calculated "Vibes". - Updated `backend/app/ingest.py` to fix ReccoBeats ID parsing. - Updated `backend/app/schemas.py` to expose audio features to the API. - Updated `README.md` with detailed Docker hosting instructions. - Added `TODO.md` for Phase 3 roadmap. - Cleaned up test scripts.
23 lines
753 B
Nginx Configuration File
23 lines
753 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
|
|
location / {
|
|
root /usr/share/nginx/html;
|
|
index index.html index.htm;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
# Proxy API requests to backend
|
|
location /api/ {
|
|
# 'backend' is the service name in docker-compose
|
|
# We strip the /api/ prefix if the backend doesn't expect it,
|
|
# but in this setup the backend routes are /history, /tracks etc.
|
|
# It's cleaner to keep /api prefix in frontend and rewrite here or configure backend to serve on /api
|
|
# For simplicity, let's proxy /api/ to /
|
|
rewrite ^/api/(.*) /$1 break;
|
|
proxy_pass http://backend:8000;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
}
|