Skip to content

Instantly share code, notes, and snippets.

@pearofducks
Created September 27, 2023 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pearofducks/2f84dc74efd664f29927227cc12bc9d1 to your computer and use it in GitHub Desktop.
Save pearofducks/2f84dc74efd664f29927227cc12bc9d1 to your computer and use it in GitHub Desktop.
git-http-backend with Caddy
git.mydomain.com {
root * /usr/share/my-git-storage
reverse_proxy unix//run/fcgiwrap.socket {
transport fastcgi {
env SCRIPT_FILENAME /usr/libexec/git-core/git-http-backend
env GIT_PROJECT_ROOT /usr/share/my-git-storage
env PATH_INFO {path}
env GIT_HTTP_EXPORT_ALL ""
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment