I'd like to request the feature to bind to unix sockets.
Technical background for this feature request:
Following things would be great for bind configuration:
bind <host>
Binds to TCP
bind unix://path
: umask
Binds to Unix path with owner being user:group with permission umask. This feature is only available to Unix-like systems as Windows does not allow sockets.
Using Unix sockets should automatically disable all HTTPS-functionality.
As I'm not comfortable with Go I cannot add this functionality by myself.
There are actually 2 main parts here:
Is this what you're looking for? https://caddyserver.com/docs/net
It's not actually the same as Unix Domain Sockets bind with permissions also. But the approach to have a host or server directive is flexible as it will allow binding to different types of connections.
Binding to unix socket is possible with Caddy 2.
Most helpful comment
Binding to unix socket is possible with Caddy 2.