Modifying the Web API URL

You must modify the Web API URL to point to the Nginx reverse proxy server.

Step 1: Go to the [appname] folder (for example, "salesdemo_cloud") on the web server and open the apprun.json file in a text editor.

The web server and the Nginx reverse proxy server can reside in the same or different machine. If the web server is an Nginx HTTP server, it can be the same or different server instance with the Nginx reverse proxy server.

Step 2: Set the value of Web API URL to the URL of the Nginx reverse proxy server, for example, https://172.16.100.51:8080 in this guide. It is highly recommended that you specify an HTTPS URL for the production environment.

All requests for the PowerServer Web APIs will be first made to https://172.16.100.51:8080 and then redirected by the Nginx reverse proxy server to the PowerServer Web APIs running on Kestrel server (for example, https://172.16.100.35:6000).