Files
youclonedl/frontend/nginx.conf
2026-05-25 20:32:16 +02:00

25 lines
560 B
Nginx Configuration File

server {
listen 80;
root /usr/share/nginx/html;
index index.html;
# SPA fallback
location / {
try_files $uri $uri/ /index.html;
}
# Proxy API and static files to backend
location /api/ {
proxy_pass http://backend:8000/api/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location /files/ {
proxy_pass http://backend:8000/files/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_buffering off;
}
}