* Use dnsmasq to create virtual hosts and mock DNS management for custom domains - dnsmasq docker image - dnsmasq network bridge - point *.sndev to 127.0.0.1 - set-dnsmasq script - -- add/remove/list dns records in dnsmasq.conf - add 'domains' to sndev - 'sndev domains dns' referencing set-dnsmasq script * restart dnsmasq if add/remove succeeded * add domain to /etc/hosts; cleanup * tell if the command needs sudo permission * add directions for dnsmasq DNS server usage * add --no-hosts flag to skip asking to edit /etc/hosts * add domains command to README.md * add dnsmasq instructions to README.md * correct exit on usage function; final cleanup and comments * portable bash; use default network for dnsmasq; set a version for dnsmasq image * POSIX compliance, add env var to .env.development, adjust README * ignore dnsmasq.conf edits, use template instead * use extra configs for dnsmasq, more POSIX compliance * fix --no-hosts flag recognition, light cleanup * shift 4 only if the command has enough args; more error messages; adjust TXT type only on list * different sed syntax for macOS
		
			
				
	
	
		
			76 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			76 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
 | 
						|
 | 
						|
# dependencies
 | 
						|
node_modules/
 | 
						|
/.pnp
 | 
						|
.pnp.js
 | 
						|
.cache
 | 
						|
 | 
						|
# testing
 | 
						|
/coverage
 | 
						|
 | 
						|
# next.js
 | 
						|
/.next/
 | 
						|
/out/
 | 
						|
 | 
						|
# production
 | 
						|
/build
 | 
						|
 | 
						|
# misc
 | 
						|
.DS_Store
 | 
						|
*.pem
 | 
						|
/*.sql
 | 
						|
 | 
						|
# debug
 | 
						|
npm-debug.log*
 | 
						|
yarn-debug.log*
 | 
						|
yarn-error.log*
 | 
						|
 | 
						|
# local env files
 | 
						|
.env*
 | 
						|
!.env.development
 | 
						|
!.env.production
 | 
						|
 | 
						|
# local settings
 | 
						|
.vscode/settings.json
 | 
						|
 | 
						|
# vercel
 | 
						|
.vercel
 | 
						|
 | 
						|
# Elastic Beanstalk Files
 | 
						|
.elasticbeanstalk/*
 | 
						|
!.elasticbeanstalk/*.cfg.yml
 | 
						|
!.elasticbeanstalk/*.global.yml
 | 
						|
 | 
						|
# service worker
 | 
						|
public/sw.js*
 | 
						|
sw/precache-manifest.json
 | 
						|
public/workbox-*.js*
 | 
						|
public/*-development.js
 | 
						|
 | 
						|
.cache_ggshield
 | 
						|
docker-compose.*.yml
 | 
						|
*.sql
 | 
						|
!/prisma/migrations/*/*.sql
 | 
						|
!/docker/db/seed.sql
 | 
						|
 | 
						|
# nostr wallet connect
 | 
						|
scripts/nwc-keys.json
 | 
						|
 | 
						|
# lnbits
 | 
						|
docker/lnbits/data
 | 
						|
 | 
						|
# lndk
 | 
						|
!docker/lndk/tls-*.pem
 | 
						|
 | 
						|
# nostr link extract
 | 
						|
scripts/nostr-link-extract.config.json
 | 
						|
scripts/nostr-links.db
 | 
						|
scripts/twitter-link-extract.config.json
 | 
						|
scripts/twitter-links.db
 | 
						|
 | 
						|
# pay-awards
 | 
						|
scripts/pay-awards.config.json
 | 
						|
 | 
						|
# dnsmasq
 | 
						|
docker/dnsmasq/dnsmasq.d/* |