<?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: Muhammad Mohsin</title>
    <description>The latest articles on DEV Community by Muhammad Mohsin (@mosen_dev).</description>
    <link>https://dev.to/mosen_dev</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3661232%2Fcd2e4b8c-a8d2-4d44-959c-3e52473a60f9.jpg</url>
      <title>DEV Community: Muhammad Mohsin</title>
      <link>https://dev.to/mosen_dev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mosen_dev"/>
    <language>en</language>
    <item>
      <title>Expose Local n8n with a Custom HTTPS Domain Using Cloudflare Tunnel</title>
      <dc:creator>Muhammad Mohsin</dc:creator>
      <pubDate>Sun, 14 Dec 2025 12:01:44 +0000</pubDate>
      <link>https://dev.to/mosen_dev/expose-local-n8n-with-a-custom-https-domain-using-cloudflare-tunnel-2kc6</link>
      <guid>https://dev.to/mosen_dev/expose-local-n8n-with-a-custom-https-domain-using-cloudflare-tunnel-2kc6</guid>
      <description>&lt;p&gt;Running &lt;strong&gt;n8n locally&lt;/strong&gt; is great — until you need &lt;strong&gt;webhooks&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Services like Stripe, GitHub, or PayPal require a &lt;strong&gt;public HTTPS URL&lt;/strong&gt;, and tools like ngrok quickly become limiting due to random URLs and session resets.&lt;/p&gt;

&lt;p&gt;There’s a cleaner solution.&lt;/p&gt;

&lt;p&gt;Using &lt;strong&gt;Cloudflare Tunnel&lt;/strong&gt;, you can expose your local n8n instance on a &lt;strong&gt;stable, secure custom subdomain&lt;/strong&gt; like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://n8n.yourdomain.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No open ports. No firewall rules. No temporary URLs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Cloudflare Tunnel?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Free HTTPS with a custom domain&lt;/li&gt;
&lt;li&gt;Stable URLs (perfect for webhooks)&lt;/li&gt;
&lt;li&gt;No port forwarding required&lt;/li&gt;
&lt;li&gt;More reliable than ngrok for long-running workflows&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Works on &lt;strong&gt;macOS, Windows, and Linux&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  High-Level Setup
&lt;/h2&gt;

&lt;p&gt;The setup is surprisingly simple:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Install Cloudflare Tunnel (&lt;code&gt;cloudflared&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Authenticate with Cloudflare&lt;/li&gt;
&lt;li&gt;Create a tunnel&lt;/li&gt;
&lt;li&gt;Map your subdomain&lt;/li&gt;
&lt;li&gt;Point it to local n8n&lt;/li&gt;
&lt;li&gt;Set n8n webhook environment variables&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That’s it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Matters for n8n Users
&lt;/h2&gt;

&lt;p&gt;With this setup you can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Test Stripe, PayPal, and webhook-based workflows locally&lt;/li&gt;
&lt;li&gt;Share demos with clients using a real domain&lt;/li&gt;
&lt;li&gt;Avoid restarting tunnels or updating webhook URLs&lt;/li&gt;
&lt;li&gt;Keep your local machine secure&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Full Step-by-Step Guide
&lt;/h2&gt;

&lt;p&gt;This post is intentionally short.&lt;/p&gt;

&lt;p&gt;I wrote a &lt;strong&gt;complete, production-ready guide&lt;/strong&gt; covering:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;macOS, Windows &amp;amp; Linux setup&lt;/li&gt;
&lt;li&gt;Tunnel configuration&lt;/li&gt;
&lt;li&gt;n8n environment variables&lt;/li&gt;
&lt;li&gt;Security best practices&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;👉 &lt;strong&gt;Read the full guide here:&lt;/strong&gt;&lt;br&gt;
🔗 &lt;a href="https://mosen.dev" rel="noopener noreferrer"&gt;https://mosen.dev&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you’re building real automations with n8n, this setup will save you a lot of time.&lt;/p&gt;

&lt;p&gt;Happy automating 🚀&lt;/p&gt;

</description>
      <category>programming</category>
      <category>ai</category>
      <category>productivity</category>
      <category>n8nbrightdatachallenge</category>
    </item>
  </channel>
</rss>
