SIMCOAI Docs
Deployment

Keep each SIMCOAI surface isolated

Backend/root/simcoPM2 API and worker
Dashboard/var/www/dashboardStatic dashboard
Docs/var/www/docs.simcoai.co.uk/publicStatic docs site
Public websiteFasthosts web hosting htdocsMarketing/public pages

Install 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.sh

Enable HTTPS

sudo certbot --nginx -d docs.simcoai.co.uk
sudo nginx -t
sudo systemctl reload nginx

Restart 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 nginx

DNS records

For the docs VPS, set the Fasthosts DNS record:

Type: A
Host: docs
Value: 77.68.51.80
TTL: Default

Verify 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