How to expose Spring API Gateway and Angular frontend with NGINX + SSL (Let’s Encrypt)

Hello everyone,

I’m new to NGINX and need some guidance.

We have the following setup:

  • Our application is running in VMs.

  • The Spring API Gateway can currently be accessed at 10.X.0.155:8222 or 10.X.0.157:8222.

  • The Angular frontend can be accessed at 10.X.0.155:80 (and another VM as backup).

  • NGINX is running on a separate VM.

I would like to:

  1. Configure NGINX as a reverse proxy so that we can expose the API Gateway and the frontend via domain names.

  2. Secure both services using Let’s Encrypt SSL certificates.

  3. Automate certificate renewal so that we don’t need to manually update them.

Could anyone provide an example configuration or point me to the right approach?
Any best practices or tips for this kind of setup would also be greatly appreciated.

Thanks in advance!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.