api-umbrella
api-umbrella copied to clipboard
Serving my website home page through api-umbrella
Assume I have a domain xyz.com and I have APIs available at
- xyz.com/service1
- xyz.com/service2 Actually the above services are running at xyz.com:5000/service1 and xyz.com:5001/service2. I have used Nginx to make them accessible through port 80 as mentioned above. My website's home page is also served through NGINX.
Now, I want to use API umbrella for API management. What I understand is I have to run API umbrella on port 80 as I will be exposing API-Umbrella's end-point instead of NGINX end-point. So I will be running NGINX on another port.
I also want to serve my website's home page(static HTML page) through port 80. I tried to replacing /opt/api-umbrella/embedded/apps/static-site/releases/20190514040459/build/index.html with my website's webpage. It works fine.
But my queries are: -Is that a standard practice? -As api-umbrella runs NGINX internally, is it a good practice to run two NGINX services on a single server? -Can I use the API-Umbrella's internal NGINX to configure my application? if yes, how?