events {} http { # Allow larger file uploads client_max_body_size 50M; server { listen 80; # Basic authentication auth_basic "AP Capture"; auth_basic_user_file /etc/nginx/htpasswd; # Serve static frontend location / { root /usr/share/nginx/html; index index.html; } # Proxy API requests to backend location /api/ { proxy_pass http://backend:8000/api/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } } }