Categorygithub.com/mohammed90/caddy-git-fs
repositorypackage
0.0.0-20240805164056-529acecd1830
Repository: https://github.com/mohammed90/caddy-git-fs.git
Documentation: pkg.go.dev

# README

Caddy Git Filesystem

This plugin allows you to serve files from a git repository directory by cloning it in-memory at Caddy boot.

Installation

Install the plugin using the xcaddy:

xcaddy build --with github.com/mohammed90/caddy-git-fs

Usage

{
	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
	}
}