BUZZSOFTWARE
ServicesCase Studies
AboutContactArticles
ENEnglishRORomână
Get a Quote
BUZZSOFTWARE

We build high-performance software that scales with your business.

Company

  • About
  • Services
  • Portfolio
  • Our Process
  • Contact

Resources

  • Articles
  • Case Studies
  • FAQ
  • Request a Quote

Legal

  • Privacy Policy
  • Terms of Service

© 2026 BuzzSoftware. All rights reserved.

Case studies

Zero-Downtime Domain Provisioning: Automating the Custom Domain and SSL Lifecycle at Scale


We engineered a fully automated domain provisioning system that handles the entire lifecycle of custom domains — from DNS validation through Nginx virtual host configuration to Let's Encrypt SSL certificate issuance — all orchestrated through a single REST API call with zero downtime.

The challenge

SuperOkay's white-label SaaS platform needed to support hundreds of clients bringing their own custom domains — each requiring DNS validation, Nginx reverse proxy configuration, and HTTPS with valid SSL certificates. Doing this manually was unsustainable: every new domain meant SSH-ing into production servers, hand-editing Nginx configs, running Certbot commands, and praying nothing broke. One misconfigured vhost could take down the entire proxy layer. The system needed to be fully automated, idempotent, and bulletproof — capable of provisioning a new custom domain with HTTPS in seconds, not hours, while preventing race conditions from concurrent requests hitting the same domain.

Our solution

We built vhost-manager as a dedicated Node.js microservice running on Koa.js with a clean REST API. The service orchestrates a multi-step provisioning pipeline: first, it validates DNS CNAME records to confirm the domain points to our infrastructure. Then it generates Nginx virtual host configurations from Handlebars templates — producing both HTTP and HTTPS variants — and activates them via symlinks in Nginx's sites-enabled directory. SSL certificates are provisioned automatically through Certbot with Let's Encrypt integration, and on successful issuance the service swaps the HTTP-only config for the full HTTPS version and triggers an Nginx reload. A domain-level locking mechanism prevents concurrent provisioning requests from colliding, and the entire pipeline includes automatic rollback on any failure — removing configs, disabling vhosts, and restoring Nginx to its previous state. The service handles creation, deletion, and status queries, all behind HTTP basic authentication.

Results

  • Reduced custom domain provisioning from hours of manual work to a single API call completing in seconds
  • Automated the full SSL lifecycle with Let's Encrypt certificate issuance and Nginx HTTPS configuration
  • Engineered domain-level locking preventing race conditions from concurrent provisioning requests
  • Built automatic rollback pipeline that restores Nginx to stable state on any provisioning failure
  • Eliminated human error in Nginx configuration through Handlebars template-driven vhost generation
  • Enabled SuperOkay to scale to hundreds of white-label custom domains with zero operational overhead
Client
SuperOkay (Internal Tool)
Industry
DevOps / Infrastructure Automation
Duration
Ongoing (maintained since 2019)
Year
2019

Technologies

DevOpsNode.jsNginxLet's EncryptCertbotSSLDNSAutomation

Ready to build something great?

Tell us about your project and get a free consultation within 24 hours.

Contact us

All case studies

Three Languages, One Brain: Building a RAG-Powered AI Knowledge Base with CRM Intelligence and Real-Time Messaging

Teilor — Retail / Luxury Jewelry

Seven Microservices, Seven Years: Engineering a SaaS Platform from First Commit to Market Leader

SuperOkay — SaaS / Productivity Software

Secure Enterprise Communications Platform with VoIP and Real-Time Chat

CellTrust Corporation — Enterprise Secure Communications