Step 11 — Test and reload nginx again
sudo nginx -t
sudo systemctl reload nginx
If you use HTTPS, run certbot for the new names too:
sudo certbot --nginx -d workspace-api.example.com -d workspace.example.com
Check:
https://workspace-api.example.com/api/shows a welcome texthttps://workspace.example.comshows the desktop login
If the desktop page loads but the screen is black, WebSockets are likely blocked.
Screenshot
Step 11 — add later: /img/selfhost/ubuntu-nginx-cloud/11-test-reload-workspace.png
Back: Step 10