Easy https for local web development
- Develop with
dev.yourapp.cominstead ofhttp://localhost:3000 - Catch https issues in development instead of production
- No need to install/trsut a self-signed CA
DevHttps wraps certbot to generate certificates and configures and runs Caddy in https reverse proxy mode.
(1) Install:
brew install divtxt/tap/devhttps certbot caddy(2) Configure DevHttps for your development:
devhttps add dev.myapp.com 3000- Use a domain you control - you must be able to create DNS entries!
- Choose a subdomain (use it in place of "dev.yourapp.com")
- Use the correct development port for your app
- Follow instructions on DNS entries etc.
(3) Run the https server (wraps caddy run):
devhttps runand enjoy development with https!
(don't forget to start your app)
- For other commands, try:
devhttps help - Based on the manual steps documented here
- Not implemented at this time:
- remove command (edit the config file in ~/.devhttps/)
- Any detection/warning about multiple apps on the same port