Keep each SIMCOAI surface isolated
Backend
/root/simcoPM2 API and workerDashboard
/var/www/dashboardStatic dashboardDocs
/var/www/docs.simcoai.co.uk/publicStatic docs sitePublic websiteFasthosts web hosting
htdocsMarketing/public pagesInstall docs on the VPS
mkdir -p /tmp/simcoai-docs
unzip SIMCOAI_DOCS_SITE_PRODUCTION.zip -d /tmp/simcoai-docs
cd /tmp/simcoai-docs
sudo bash deploy/install-docs-vps.shEnable HTTPS
sudo certbot --nginx -d docs.simcoai.co.uk
sudo nginx -t
sudo systemctl reload nginxRestart backend and reload Nginx
cd /root/simco
npm run verify
pm2 restart simcoai-api --update-env
pm2 restart simcoai-worker --update-env
pm2 save
nginx -t
systemctl reload nginxDNS records
For the docs VPS, set the Fasthosts DNS record:
Type: A
Host: docs
Value: 77.68.51.80
TTL: DefaultVerify using Cloudflare and local resolver:
nslookup docs.simcoai.co.uk 1.1.1.1
nslookup docs.simcoai.co.uk
curl -I https://docs.simcoai.co.uk