server { listen 80; server_name example.com; root /home/user1/Projects/xxx/frontend/build; index index.html; allow 127.0.0.1; allow 192.168.1.1; deny all; location /api/ { rewrite /api/(.*) /$1 break; proxy_pass http://localhost:10001; } }