CDNs, ingress, etc... haven't had to use a web proxy directly for years. At the end of the day funnily enough it's still nginx or similar behind the scenes.
Caddy for local development. Less config and setup.
Cool, but how do you provision SSL locally if you're behind a NAT?
For the serving static files/rewrites I usually try to do it in my own code so I don't have to deal with extra configs. Of course, this is a bit slow but locally it's fine :)
Cool, but how do you provision SSL locally if you're behind a NAT?
Remote / work from home without crazy VPN requirements. Some workplaces / offices I've been to also don't have them.
I usually try to do it in my own code
I gets a lot harder when you have multiple services and/or if you mean you've just written your own reverse proxy then I'd prefer learning the configs.
Writing my own, ah no :D just setting up my local env to serve static files. Flask, Node, Go, DJango supports it out of the box. Though, they're extremely slow in most cases. Then in production I just override the url with Caddyserver. Pretty neat :)
Comments
CDNs, ingress, etc... haven't had to use a web proxy directly for years. At the end of the day funnily enough it's still nginx or similar behind the scenes.
Caddy for local development. Less config and setup.
You use Caddy for local development? How come, I have never used it for local dev
To make it as close to production without all the hassle.
- Autoprovison SSL
- Serve static files without another web server
- Rewrites, redirects, map HMR, websocket ports etc
Sure nginx works too but Caddy is definitely less work and less hassle
Cool, but how do you provision SSL locally if you're behind a NAT?
For the serving static files/rewrites I usually try to do it in my own code so I don't have to deal with extra configs. Of course, this is a bit slow but locally it's fine :)
Remote / work from home without crazy VPN requirements. Some workplaces / offices I've been to also don't have them.
I gets a lot harder when you have multiple services and/or if you mean you've just written your own reverse proxy then I'd prefer learning the configs.
Writing my own, ah no :D just setting up my local env to serve static files. Flask, Node, Go, DJango supports it out of the box. Though, they're extremely slow in most cases. Then in production I just override the url with Caddyserver. Pretty neat :)