The text describes setting up a local development environment with wildcard subdomains for easier project management. Using a fixed port for each project becomes problematic when managing multiple services simultaneously. A solution involves using `dnsmasq` to resolve local domains like *.lan to 127.0.0.1. This setup eliminates port collisions and simplifies service access with memorable local subdomains. The guide provides step-by-step instructions for installing and configuring `dnsmasq` on macOS Sonoma. The configuration involves editing the `dnsmasq.conf` file to listen on localhost and map *.lan to the local machine. Users are instructed on how to configure macOS to use `dnsmasq` for DNS resolution, through GUI or command-line. After configuration, starting `dnsmasq` and flushing the DNS cache are necessary for the changes to take effect. Testing the setup involves using `dig` and `ping` to verify that the local domain resolves correctly to 127.0.0.1. The text also mentions using Caddy to run WSGI services but notes a limitation with caddy-snake due to shared Python interpreters. The provided Caddyfile demonstrates how to configure Caddy to serve WSGI applications from different project directories using `.lan` subdomains. Overall, the text offers a structured guide for developers looking to improve their local development workflow. The goal is to create a more streamlined and manageable development setup.
peter-hoffmann.com
peter-hoffmann.com
Create attached notes ...
