Protection defenders frontend is a Vue 3 app
Requires: Node and Npm
- Run the following code on the project's root dir to install dependencies
npm install
- Build the app
npm run build
- Create a new configuration file
sudo nano /etc/nginx/sites-available/dscompass-front
- Copy these lines and save the file:
server {
client_max_body_size 8M;
server_name ds-compass.protectioninternational.org;
root /srv/www/protectiondefenders-front/dist;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}
- Check the configuration syntax by typing:
sudo nginx -t
- Link the configuration file to Nginx’s sites-enabled directory to enable them:
sudo ln -s /etc/nginx/sites-available/dscompass-front /etc/nginx/sites-enabled
- Then restart the Nginx service
sudo systemctl restart nginx
- Install Certbot
sudo apt install certbot python3-certbot-nginx
- Obtain the certificate
sudo certbot --nginx -d ds-compass.protectioninternational.org
npm run serve