<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Matt Han</title>
    <description>The latest articles on DEV Community by Matt Han (@matt_han_7032dc6ae).</description>
    <link>https://dev.to/matt_han_7032dc6ae</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3835769%2F182f06a6-eba6-430e-8393-dd75ad70a8f6.png</url>
      <title>DEV Community: Matt Han</title>
      <link>https://dev.to/matt_han_7032dc6ae</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/matt_han_7032dc6ae"/>
    <language>en</language>
    <item>
      <title>Minimalist Vaultwarden + Auto-TLS stack (43s deployment, 11.95 MiB footprint)</title>
      <dc:creator>Matt Han</dc:creator>
      <pubDate>Fri, 20 Mar 2026 16:12:05 +0000</pubDate>
      <link>https://dev.to/matt_han_7032dc6ae/minimalist-vaultwarden-auto-tls-stack-43s-deployment-1195-mib-footprint-2c00</link>
      <guid>https://dev.to/matt_han_7032dc6ae/minimalist-vaultwarden-auto-tls-stack-43s-deployment-1195-mib-footprint-2c00</guid>
      <description>&lt;p&gt;I've seen too many bloated tutorials using Nginx Proxy Manager or Traefik just to expose a simple Vaultwarden instance, resulting in unnecessary memory overhead and TLS configuration headaches for newcomers.&lt;/p&gt;

&lt;p&gt;I wanted to see how minimal and fast we could push a production-ready deployment from zero to a fully secured &lt;code&gt;https://&lt;/code&gt; endpoint. &lt;/p&gt;

&lt;p&gt;I wrote a zero-dependency bash pipeline that:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Bootstraps Docker &amp;amp; Compose natively based on the OS.&lt;/li&gt;
&lt;li&gt;Injects a hardened &lt;code&gt;Caddyfile&lt;/code&gt; for automatic Let's Encrypt TLS (with HSTS &amp;amp; security headers).&lt;/li&gt;
&lt;li&gt;Auto-generates a cryptographically secure 48-char &lt;code&gt;ADMIN_TOKEN&lt;/code&gt; via OpenSSL.&lt;/li&gt;
&lt;li&gt;Profiles the exact CPU/RAM usage and deployment duration.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;The Benchmark Results:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Total Time (Zero to HTTPS):&lt;/strong&gt; ~43s&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vaultwarden RAM Usage:&lt;/strong&gt; 11.95 MiB&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Caddy RAM Usage:&lt;/strong&gt; ~20 MiB&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Host:&lt;/strong&gt; (1GB RAM, 1 vCPU)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F40ng6i8tf7g6v2m3byhl.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F40ng6i8tf7g6v2m3byhl.jpg" alt=" " width="800" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Pipeline Source:&lt;/strong&gt;&lt;br&gt;
If you want to audit the code or reproduce the benchmark, I threw the &lt;code&gt;install.sh&lt;/code&gt;, &lt;code&gt;docker-compose.yml&lt;/code&gt;, and &lt;code&gt;Caddyfile&lt;/code&gt; into this Gist: &lt;a href="https://gist.github.com/SeanhChou/4e5777bc23fd7ab6d59e0e5268cec3e1" rel="noopener noreferrer"&gt;Caddyfile&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What are you guys using for reverse proxying lightweight apps? Are there any footprints smaller than Caddy for automated TLS?&lt;/p&gt;

</description>
      <category>docker</category>
      <category>tutorial</category>
      <category>developer</category>
    </item>
  </channel>
</rss>
