Multi-tenant SaaS for $30/mo: wildcard SSL + nginx vhost generator + Flask routing This article describes a cost-effective multi-tenant SaaS architecture that runs over 50 tenants on a single $30/month VPS using a wildcard SSL certificate, an nginx regex-based virtual host generator, and a Flask routing system that scopes data by partner slug. The setup eliminates the need for per-tenant configuration or Kubernetes by automatically provisioning new partners via a webhook, with the only write operation being a database row insertion. The author argues that many developers over-engineer with microservices and managed cloud services when a simple monolith with SQLite is sufficient for early-stage growth. Multi-tenant SaaS for $30/mo: the actual architecture Every "build a SaaS" tutorial reaches for Kubernetes, managed Postgres, and three cloud services before the first user signs up. You don't need that. Here's a multi-tenant setup that runs 50+ tenants on subdomains, on one $30/mo VPS. The requirement White-label partnership program. Each partner gets a storefront at partner-{slug}.guardlabs.online with our catalog, their referral IDs baked in. New partner → automatic provisioning after payment webhook. Phase 1 0-50 tenants : wildcard SSL + nginx + Flask Wildcard SSL via Let's Encrypt — one cert covers .guardlabs.online : certbot certonly --manual --preferred-challenges dns \ -d " .guardlabs.online" -d "guardlabs.online" DNS-01 challenge — add the TXT record your DNS provider, certbot validates. nginx server block routing by $host : server { listen 443 ssl; server name ~^partner- ?