~sbaildon/tldevelopment

resolve reserved domains locally
rename plist and log paths

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~sbaildon/tldevelopment
read/write
git@git.sr.ht:~sbaildon/tldevelopment

You can also use your local clone with git send-email.

#tldevelopment

Resolve ICANN reserved top level DNS names on the local machine. Useful for testing applications locally

macOS only

tld + development

#Installation

git clone git@git.sr.ht:~sbaildon/tldevelopment
cd tldevelopment
make
sudo make install

#Start

sudo launchctl bootstrap system /Library/LaunchDaemons/localhost.dnsmasq.plist

#Stop

sudo launchctl bootout system /Library/LaunchDaemons/localhost.dnsmasq.plist

#Example

Use caddy to reverse proxy your application, and then hit up http://myapp.${DOMAIN} in your browser to see it in action

myapp.localhost:80 {
	reverse_proxy localhost:8080
}

dashboard.myapp.example:80 {
	reverse_proxy localhost:8080
}

myapp.test:80 {
	reverse_proxy localhost:8080
}