I'm currently hosting a Python FastAPI backend on a Linux virtual machine, where I've also set up an SQL database and connected the two. I plan to host my HTML frontend using Static Web Apps. However, I'm looking for cost-effective alternatives to API Management (APIM), especially since the pricing for APIM with VNET integration is around $700. How can I design my infrastructure to keep costs down while keeping the backend on the VM?
1 Answer
Consider using a public backend and setting up NGINX on your VM to handle direct HTTPS requests. This way, you can avoid the high costs of APIM while still keeping everything secure and efficient. Just make sure NGINX points to your FastAPI service on the appropriate port.

Could you give more details on how to implement the NGINX setup?