Git Plugin for Caddy v2.

Inspired by this comment.

Please ask questions either here or via LinkedIn. I am happy to help you! @greenpau

Please see other plugins:

Table of Contents


The caddy-git allows updating a directory backed by a git repo.

Getting Started

For example, the following configuration sets up a definition for
repo. The request to trigger
git pull of the repository.

  git {
    repo {
      base_dir /tmp
      branch gh-pages
      depth 1
} {
  route /update/ {
    git update repo
  route {
    file_server {
      root /tmp/

The cloning of the repository happens on startup. Additionally, the cloning
happens when /update/ is being hit.



View Github