Back to Browse

Local dev setup for multi-tenant applications

3.4K views
Oct 31, 2023
17:51

I'm doing some videos on setting servers up for multi-tenant applications. This means letting each customer/user have their own subdomain within your application. To start, we setup our local dev environment to use dnsmasq + nginx to: 1. Map the domain used to a directory (where our code lives) 2. Setup specific apps to run with ANY subdomain so we can test a multi-tenant setup locally ⌚️ Timestamps 00:00 Intro 00:34 We use Brew 01:15 If you use PHP 02:29 Installing dnsmasq 04:58 Using dnsmasq to resolve hostnames 06:07 Install + Start Nginx 07:53 Map domain to app directory 12:16 Multi-tentant setup - mapping anysubdomain to an app 14:53 Nginx if you're not using PHP 15:41 Maybe just use Herd

Download

1 formats

Video Formats

360pmp439.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Local dev setup for multi-tenant applications | NatokHD