We currently have 3 Container Instances
1 Login UI – Angular Application with its own NGINX server configure in the Docker Image
2 HD UI - Angular Application with its own NGINX server configure in the Docker Image
3 API - .Net Core restful API
We are expecting to have a Wildcard certificate to be utilized.
We are encounter a problem when a user requested a Specific URL in the HD UI and they are not logged in and the application needs to redirect, the expected behavior is:
- User requested a Specific URL in HD UI.
- Application determines the user is not logged n and redirects the user to Login UI.
- User authenticates.
- Application redirects the user back to the Specific URL in HD UI.
We believe that with this design and we will need a 4th NGINX server Container that will be in charge of redirecting the specific URLs accordingly to the users desire destination:
Login UI, HD UI, or API.
Is having 3 NGINX server the best approach?
What are the best practices in order to achieve the expected behavior described?
How can we set up this environment on AWS?