WeidiDeng / caddy-socket-activation

socket activation for caddy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Socket Activation for Caddy (WIP)

Useful in deployments where sockets are passed by systemd.

Usage

Caddy Configuration

https:// {
    bind socket-activation/https
    respond "ok"
}

Using socket activation requires every site block to have explicit bind, it can be used in a snippet to avoid repetition.

Usage

Commandline

systemd-socket-activate -l 443 --fdname=http3 /path/to/caddy run

Credits

FD to sockets mapping comes from go-systemd.

About

socket activation for caddy

License:Apache License 2.0


Languages

Language:Go 100.0%