V2: reverse proxy to UNIX socket?

Yes! That did it, thank you!

One last noob question: I’m trying to exclude /static from the reverse proxy and serve those directly. My current Caddyfile looks like this:

samvanderkris.xyz, www.samvanderkris.xyz {
        reverse_proxy * unix//run/gunicorn.sock
        file_server /static/* {
                root /home/sam/samvanderkris
        }
        header * Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
}

But when I try to request something in /static it 404’s and the response headers show that it was actually still passed to gunicorn. But even if I comment the reverse_proxy out, it keeps 404-ing. I checked the permissions and I’m pretty sure caddy has can read the files in my static directory.