Author: Hrithik C A

  • Caddy over Nginx

    Thesis: for a single-admin, few-sites stack, fewer moving parts is the feature.

    For years Nginx was the reflex answer. For my scale, Caddy wins on maintenance math:

    Automatic HTTPS
    Obtains and renews Let’s Encrypt certs with zero config — no certbot timers, no webroot mapping, no expiry emergencies.
    One small config file
    Reverse-proxying a WordPress container is literally reverse_proxy wordpress:80.
    Sane defaults
    HTTP→HTTPS redirects, HTTP/2 and HTTP/3 — on by default.

    My current stack: one Caddy container binds 80/443, terminates TLS for a static portfolio, and proxies blog.* to a WordPress container — all rootless under Podman.

    The lesson isn’t “Caddy beats Nginx” — Nginx wins at massive scale. It’s: match tool complexity to operational reality.

  • Binding Ports 80/443 as a Non-Root User with Podman on Debian

    The fix in one line: raise the kernel’s unprivileged port floor, pair it with linger, done.

    Rootless containers are the right default — no root escalation, no daemon running as uid 0. The snag every newcomer hits: binding privileged ports (<1024) fails for a non-root user.

    Drop this into /etc/sysctl.d/99-podman-ports.conf:

    net.ipv4.ip_unprivileged_port_start=80

    Apply and verify:

    $ sudo sysctl --system
    $ cat /proc/sys/net/ipv4/ip_unprivileged_port_start
    80

    Pair it with loginctl enable-linger $USER — without linger, a rootless compose stack dies with your SSH session.

    Total setup cost: two files, one command. That’s the whole privilege model a rootless web server needs.