Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 590 Bytes

README.org

File metadata and controls

30 lines (22 loc) · 590 Bytes

Caddy VFS module for (local) Git repositories

With special thanks to caddy-fs-s3 for serving as a template.

Installation

Build Caddy using xcaddy

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

Usage

file_server {
	fs git <path/to/repo.git> [<revision=HEAD>]
}
file_server {
	fs git {
		repository <path/to/repo.git>
		revision HEAD # the default revision
	}
}