Project — bylucas-platform
My Own Production Server, Fully Described as Code
Terraform, Ansible and GitHub Actions powering every *.bylucas.eu project on a single VPS.
In plain English
Instead of relying on hosting platforms, I rent a small server and host my projects myself, including this portfolio. Everything lives under the bylucas.eu domain, with a home page that leads to my portfolio and to a private monitoring dashboard. The whole server is described in configuration files, so if it ever disappears I can rebuild it identically with a couple of commands. And every time I push code to GitHub, the matching website updates itself within a minute.
For the curious
The platform is split into three layers. Terraform, with the OVH provider, manages the DNS records (bylucas.eu and the *.bylucas.eu wildcard pointing to the VPS). An Ansible playbook of a dozen roles turns a blank Ubuntu VPS into a production server: SSH hardening, UFW firewall, fail2ban, unattended upgrades, swap, nginx with Let's Encrypt certificates, PostgreSQL with daily backups, Docker (Warp10 and a Minecraft server), and an app-deploy role that generates a systemd service, an nginx vhost, a .env file and a TLS certificate for every project declared in a single variables file. Secrets are encrypted with ansible-vault. Finally, a reusable GitHub Actions workflow, shared by all project repositories, builds the code, ships it with rsync over SSH and restarts the right service. The landing page itself is a Next.js app exported as static files and served directly by nginx.
A little summary :
This project is where all my DevOps knowledge comes together in real production. Adding a new website now takes one entry in a YAML file and a git push: Ansible prepares the server, GitHub Actions delivers the code, and nginx serves it over HTTPS. It taught me infrastructure as code, Linux server security and how to design a deployment pipeline that stays simple to maintain.


