Installing the web server

This guide covers the installation and configuration of Nginx as the web server for the application.

Configuring Nginx

Edit the default server configuration of Nginx by running the following command in the terminal:

sudo nano /etc/nginx/sites-available/default

Add the following location block to the server configuration:

location /rest {
        proxy_pass http://localhost:8080/rest;                
}

Save the changes and close the file. Restart Nginx for the changes to take effect:

sudo systemctl restart nginx

Installing the Web files

Unzip the web.zip file into the directory /var/www/html.

sudo unzip web.zip -d /var/www/html

Last updated