- Cosmos
- Akash
- Quicksilver
- Juno
- Tgrade
- Stargaze
- Desmos
- Regen
git clone https://github.com/Ritvik32/SnapShotService.git
npm install
npm run dev --host
npm run build
1. First we have to install nginx on the machine check whether nginx is present on the server if not then run the commands to install the nginx:
sudo apt update
sudo apt install nginx -y
2. So now nginx is installed on the server go to this path /var/www/html and paste the dist file content which you got from the npm run build command.
and now we have to write the nginx configuration file so for that go to this directory /etc/nginx/site-available/ and create a file using nano with any name here I am creating file with witval name and paste the below content in the file.
server {
server_name www.example.com;
root /var/www/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location /api {
proxy_pass http://localhost:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
3. Now we have to link our nginx configuration file with site-enabled directory so run the following command:
sudo ln -s /etc/nginx/site-available/witval /etc/nginx/site-enabled
To add additional networks to the front end Click here