Deploy on a server
The repository’s deploy/ folder runs the demo in two places. The app’s interface is on Vercel. One Ubuntu 24.04
server runs the rest: the API, live updates, MSN with OpenSearch, Postgres, the website, these docs and the
installer download, all behind HTTPS. The server also serves its own copy of the app, as a fallback.
No domain is needed. The server’s addresses are names under sslip.io, a public DNS service that answers any name with the IP address written in it, so the server can get real certificates for them:
| Address | What |
|---|---|
https://avacom-app.vercel.app |
The app |
https://app.<ip>.sslip.io |
The server’s copy of the app, the fallback |
https://api.<ip>.sslip.io |
The API, for the app on Vercel |
https://rt.<ip>.sslip.io |
Live updates, for the app on Vercel |
https://<ip>.sslip.io |
The website; the installer is at /download/AVACOM-Setup.exe |
https://docs.<ip>.sslip.io |
These docs |
<ip> is the server’s IP address as it is, for example app.203.0.113.10.sslip.io. When those names cannot get
certificates, the setup falls back to the bare IP address: https://<ip> for the app, port 8443 for the website and
9443 for the docs. It tries Let’s Encrypt’s certificates for IP addresses first, then a certificate authority of its
own, which browsers do not trust.
The full steps are in deploy/README.md: creating the server (8 GiB memory, 4 vCPUs), setting it up with
deploy/ship.sh, giving the Vercel project the server’s addresses with deploy/vercel-env.sh, the demo users, the
demo data, the certificates, and running and rehearsing it. They are not repeated here. Without a server, the whole
demo can run on Vercel instead, the API included, with a cloud Postgres: see deploy/vercel-api/README.md.
Publishing these docs there
Section titled “Publishing these docs there”The docs are static files. Build them, then publish the docs/dist folder to the server:
cd docsnpm cinpm run build # writes docs/distcd ..bash deploy/ship.sh root@<ip> --sites-only --docs docs/distThe server serves the new files at once; nothing restarts. The docs are also published on Vercel, at
https://avacom-docs.vercel.app (see docs/README.md).
How it differs from a bank installation
Section titled “How it differs from a bank installation”The demo server is built for showing the product, not for production:
- It signs in with two demo users,
avacom-adminandavacom-noc, whose passwords are generated on the server. There is no single sign-on. - MSN is not reachable from outside: the demo data is loaded from inside the server.
- Approved fixes are simulated, because there are no hosts to run them on. That is why the API runs in demo mode: production refuses simulated fixes.
For a bank installation, follow Install with Docker Compose in production mode, run MSN inside the bank’s network, and connect the bank’s own sources.