askrobots / hello-server
Public
The smallest thing worth installing on a server of your own: a test for one-click installs
danq9
hello-server 2026.11v1: the smallest thing worth installing on your own server
7298f7b
8 hours, 48 minutes ago
History
README.md · 1.2 KB · 35 lines
hello-server
The smallest thing worth installing on a server of your own, made to test "one click" installs on DigitalOcean (and any cloud that reads cloud-init).
When it works, the new server's address shows It works. with the server's name, the version and commit installed, and how long it has been running. /health gives the same as JSON, so an installer can check:
{"ok": true, "app": "hello-server", "version": "2026.11v1", "commit": "…", "installed_at": "…", "host": "…", "up_seconds": 42}
How it installs
cloud-init.yamlis what an installer gives the new server: clone this repository, then runinstall.shat
one version.
install.shchecks out that version and runsserver.pyas a service on port 80, with no packages added: a
fresh Ubuntu server has git and Python already. It runs as a throwaway user that can only open port 80.
server.pyis Python's standard library only.
By hand, on a fresh Ubuntu server, as root:
git clone https://gitstable.com/git/askrobots/hello-server.git /opt/hello-server
sh /opt/hello-server/install.sh 2026.11v1
curl http://localhost/health
Versions
Named by year, month and a count: 2026.11v1 is the first, of November 2026.
Licence
MIT