Nginx Development Guide
21–30 of 39 posts
Re: Nginx Development Guide
#22- JavaScript: https://nginx.org/en/docs/njs/ and https://github.com/nginx/njs-examples
Re: Nginx Development Guide
#23Re: Nginx Development Guide
#24Earlier quoted context omitted.
Have there been any good in-depth comparisons of the two recently (from an admin/user PoV, out-of-the-box featureset & performance for common tasks). I've not seen anything recent that isn't entirely superficial (little more than “I prefer the config format”, which while valid isn't exactly in-depth or in-bredth).
So I've been slowly moving from nginx to Caddy in new projects (old projects still use nginx). The reasons for this are: 1. Automatic ACME integration in Caddy compared to the mess of containers something like nginx-proxy-manager is or the unreliability of external solutions like certbot or acme.sh 2. nginx's config. Footguns like if are well known, but even just if you want to deploy a nginx server with virtual host…
Before that it goes to the one named "" and if that doesn't exist, the one with default_server.
If traffic with no Host header went to no server by default, people would also call that a footgun...
Re: Nginx Development Guide
#25There are a few additional ways to extend nginx without writing a module in C. - JavaScript: https://nginx.org/en/docs/njs/ and https://github.com/nginx/njs-examples - Lua: https://github.com/openresty/lua-nginx-module - Rust: https://github.com/nginxinc/ngx-rust
I haven't tried it yet, but it looks promising.
Re: Nginx Development Guide
#26hahaha so fitting... I've been struggling with an nginx configuration for two days now. I'm just about to try Caddy...
Re: Nginx Development Guide
#27Earlier quoted context omitted.
Have there been any good in-depth comparisons of the two recently (from an admin/user PoV, out-of-the-box featureset & performance for common tasks). I've not seen anything recent that isn't entirely superficial (little more than “I prefer the config format”, which while valid isn't exactly in-depth or in-bredth).
So I've been slowly moving from nginx to Caddy in new projects (old projects still use nginx). The reasons for this are: 1. Automatic ACME integration in Caddy compared to the mess of containers something like nginx-proxy-manager is or the unreliability of external solutions like certbot or acme.sh 2. nginx's config. Footguns like if are well known, but even just if you want to deploy a nginx server with virtual host…
Re: Nginx Development Guide
#28These days I'd rather develop on Caddy than Nginx.
I understand that one can probably methodologically master caddy, but from the perspective of someone who has been running web servers for decades and just needs to get things done, my god, caddy has the worst documentation of any product I've ever seen, and the most confusing configuration I can possibly imagine.
Confusion over v1/v2/json/yaml formats, documentation showing tiny snippets without telling how where they fit, etc. Not even ChatGPT4 can write caddy configuration.
For a long time I thought that my caddy config was blocking all IPs except the ones I listed. Turns out that no. The shit I wrote did nothing.
TLDR: Don't fall for the hype. Nginx is excellent.
Re: Nginx Development Guide
#29These days I'd rather develop on Caddy than Nginx.