惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
Recent Announcements
Recent Announcements
雷峰网
雷峰网
The GitHub Blog
The GitHub Blog
罗磊的独立博客
月光博客
月光博客
J
Java Code Geeks
A
About on SuperTechFans
Microsoft Security Blog
Microsoft Security Blog
D
Docker
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
F
Fortinet All Blogs
U
Unit 42
C
Check Point Blog
Martin Fowler
Martin Fowler
有赞技术团队
有赞技术团队
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
大猫的无限游戏
大猫的无限游戏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
阮一峰的网络日志
阮一峰的网络日志
MyScale Blog
MyScale Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I got tired of setting up SSL for every side project, so ...
Khanh Duong · 2026-05-20 · via DEV Community

Khanh Duong

You know the drill.

Your app runs perfectly on localhost:3000. Time to deploy it. So you rent a cheap VPS, SSH in, and then the fun begins:

  • Configure Nginx as a reverse proxy
  • Install Certbot
  • Request a Let's Encrypt certificate
  • Set up a cron job for renewals
  • Debug why the certificate didn't apply
  • Google "nginx ssl redirect loop" at 11pm

Two hours later, you still don't have HTTPS working.

I've done this dance at least a dozen times. Last week I finally got fed up and packaged the whole thing into a reusable kit that takes 60 seconds instead of 2 hours.

The idea: replace Nginx + Certbot with Caddy

The secret is Caddy. Unlike Nginx, Caddy handles SSL automatically — it requests certificates from Let's Encrypt and renews them without any configuration. The entire reverse proxy config is 3 lines:

yourdomain.com {
reverse_proxy app:3000
}

No ssl_certificate paths. No certbot renew. No cron jobs. It just works.

What I built

I wrapped this into a small Docker Compose setup that anyone can use:

docker-compose.yml — runs Caddy as a reverse proxy alongside your app container

Caddyfile — 3 lines, automatic SSL

.env — the only file you edit:

DOMAIN=myapp.com
APP_IMAGE=my-dockerhub-user/my-app:latest
APP_PORT=3000

setup.sh — a one-command script that installs Docker on a fresh Ubuntu VPS and launches everything

README — step-by-step instructions with examples for Node.js, Python, Go, and static sites

The buyer experience

  1. Rent a cheap VPS ($4-6/month on Hetzner, DigitalOcean, etc.)
  2. Point your domain's A record to the server IP
  3. Upload the files and run bash setup.sh
  4. Edit 3 lines in .env
  5. Run docker compose up -d
  6. Visit https://yourdomain.com — it's live with a real SSL certificate

That's it. No Nginx. No Certbot. No DevOps experience needed.

Why I'm selling it instead of open-sourcing it

I wanted to experiment with selling a small digital product. The kit is $10 — cheap enough to be an impulse buy, expensive enough to be worth packaging properly with good documentation and examples.

The configs themselves aren't rocket science. What you're paying for is the tested, documented, ready-to-go package that saves you an afternoon of Googling and debugging.

If you're interested: Docker Deploy Kit on Gumroad

What I learned building my first digital product

  • Scope matters. A product this small (5 files) can be built and shipped in one afternoon. Don't overthink it.
  • Test it for real. I spun up a Hetzner VPS and ran through the entire buyer experience. Found a bug (environment variables weren't being passed to the Caddy container) and fixed it before anyone paid for it.
  • The README is the product. The config files are simple. The value is in clear, step-by-step documentation that makes the buyer feel confident.
  • Free DNS services are unreliable. DuckDNS didn't work with Let's Encrypt during testing. Proper domain registrars (Namecheap, Porkbun, Cloudflare) are worth the few dollars.

If you have any questions about Caddy, Docker deployment, or selling digital products, happy to answer in the comments.