Linux VPS Deploy: From Fresh Ubuntu to Live HTTPS in 1 Minute
View completed workalfredospizza.github.io



The problem
An app that works on your computer is not ready for customers. It must stay online, restart after a crash, and keep its data safe.
What I built
A script that takes a fresh Ubuntu 24.04 server to a live HTTPS app in about 1 minute. I can run it again to update the app.
What it sets up
A systemd service with its own user and auto-restart. Nginx in front of the app. Secrets in a protected file. Daily backups with an integrity check, kept for 14 days. A crash test that kills the app to check that it comes back.
Test
I tested it on a local Ubuntu test server with a temporary Cloudflare address for HTTPS. For a real domain, I would use a Let's Encrypt certificate. For a client, the app stays online on their own server: if it crashes, it restarts by itself, and the data is backed up every day. This is a demo project, not a client project.
See it at alfredospizza.github.io
0 likes · 2 views · Oct 21, 2026
One script takes a fresh Ubuntu server to a live HTTPS app: systemd auto-restart, Nginx, protected secrets, daily checked backups and a crash test.




