Title. I looked at how to configure anything and found Caddy to be much easier to use. Aside from a lot of docker images integrating with it, why is everyone using it? Edit: I meant Traefik

you are viewing a single comment's thread
view the rest of the comments
[–] 13 points 1 year ago* (1 child)

I prefer nginx to Caddy myself for reverse proxies. As far as VPN technologies go, Tailscale and WireGuard are where it’s at.

Not sure why we’re comparing Caddy to Tailscale though.

  • source
  • hideshow 2 child comments
  • [–] [S] 1 point 1 year ago (1 child)

    I meant Traefik, sorry.

    Also, why Nginx over Caddy? How does a minimal reverese proxy setup look like with Nginx?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 1 year ago (1 child)

    It’s mostly about performance. Caddy’s Go-based garbage collector starts to negatively impact performance at high load. It looks something like:

    server {
        listen 443 ssl http2;
        server_name example.com;
    
        ssl_certificate     /etc/nginx/ssl/fullchain.pem;
        ssl_certificate_key /etc/nginx/ssl/privkey.pem;
    
        location / {
            proxy_pass http://localhost:3000/;
    
            proxy_set_header Host $host;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
        }
    }
    
  • source
  • parent
  • hideshow 2 child comments