How mbashia/nginx-deploy-site works
This is a small Bash utility for bringing a backend site behind nginx and provisioning TLS. An administrator supplies an upstream, port, and domains; the script checks prerequisites and DNS, creates and enables an nginx configuration, validates it with rollback on failure, reloads nginx, and invokes Certbot. The repository provides no source excerpts, so the workflow and relationships shown here rely on README documentation only.
Main entry points: domain-deploy.sh Vhost config
Components 12
Other components
- Administrator
- CLI inputs
domain-deploy.sh - Input checks
domain-deploy.sh - DNS checks
domain-deploy.sh - DNS resolver
- Vhost config
domain-deploy.sh - nginx site files
- Config test
domain-deploy.sh - nginx
- nginx reload
domain-deploy.sh - Certbot
- Backend app
Connections 14
- Administrator → CLI inputs: provides flags
README.md - CLI inputs → Input checks: validates
README.md - Input checks → DNS checks: checks domains
README.md - DNS checks → DNS resolver: resolves domains
README.md - DNS checks → Vhost config: permits writing
README.md - Vhost config → nginx site files: writes and enables
README.md - Vhost config → Backend app: proxies requests
README.md - Vhost config → Config test: is validated by
README.md - Config test → nginx: runs nginx -t
README.md - Config test → nginx site files: rolls back on failure
README.md - Config test → nginx reload: continues on success
README.md - nginx reload → nginx: reloads
README.md - nginx reload → Certbot: invokes certificate setup
README.md - Certbot → nginx site files: adds TLS config
README.md