Earlier quoted context omitted.
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…
> did you know that if there is no Host header nginx serves the site evaluated first in its config file (even if the site has a server_name directive)? 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...
Nginx Development Guide
31–39 of 39 posts
Re: Nginx Development Guide
#32hahaha so fitting... I've been struggling with an nginx configuration for two days now. I'm just about to try Caddy...
Caddyfile have easier syntax imho. Now, I wonder how does it compares to traefik..
Re: Nginx Development Guide
#33hahaha so fitting... I've been struggling with an nginx configuration for two days now. I'm just about to try Caddy...
Caddyfile have easier syntax imho. Now, I wonder how does it compares to traefik..
Re: Nginx Development Guide
#34These days I'd rather develop on Caddy than Nginx.
> These days I'd rather develop on Caddy than Nginx. do you mean develop on Caddy itself or use Caddy as a webserver for a website you're developing?
Re: Nginx Development Guide
#35There 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
Re: Nginx Development Guide
#36There 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
- Perl: https://nginx.org/en/docs/http/ngx_http_perl_module.html
Re: Nginx Development Guide
#37Earlier quoted context omitted.
Caddyfile have easier syntax imho. Now, I wonder how does it compares to traefik..
If you are using caddy in k8s or docker (compose), you are wasting time. Traefik can be configured in almost every way via labels on pods/containers. It's also frustrating that you have to compile plugins into caddy to use them.
Re: Nginx Development Guide
#38These days I'd rather develop on Caddy than Nginx.
I got caught in the hype and switched to caddy. After a year I'm now back with nginx and happier than ever. 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 imagi…
Re: Nginx Development Guide
#39These days I'd rather develop on Caddy than Nginx.
Would love a rust version of caddy. Performance of Cady vs nginx is not as high. But overall an amazing project