Scripts to simplify the creation of nginx proxy for local dev server
Run the setup script:
node setup.jsThe script will:
- Generate SSL certificates with mkcert
- Update nginx configuration with your domain and port
- Optionally update hosts file (requires admin)
- Starts docker instance
When you're done, run the cleanup script:
node cleanup.jsThe script will:
- Remove hosts file entries
- Stop Docker Compose
- Remove SSL certificates
mkcert www.example.comand move the generated certificates intonginx/ssl/folder- add host entry to
C:\Windows\System32\drivers\etc\hostsfile
127.0.0.1 www.example.com- edit
nginx/nginx.conf
3.1. update domain
3.2. update proxing port 3.3. update ssl paths - Run
docker compose up