server { listen 80; server_name firewall.example.com; location /api { proxy_pass http://127.0.0.1:8080; proxy_set_header X-Real-IP $remote_addr; } location / { root /var/www/firewall-frontend; try_files $uri $uri/ /index.html; } }