This plugin allows you to serve files from a git repository directory by cloning it in-memory at Caddy boot.
Install the plugin using the xcaddy
:
xcaddy build --with github.com/mohammed90/caddy-git-fs
{
filesystem nginx-repo git https://github.com/caddyserver/nginx-adapter {
refresh_period 10s # optional, no refresh when omitted
}
}
example.com {
file_server {
fs nginx-repo
}
}