Created
September 27, 2023 07:24
-
-
Save pearofducks/2f84dc74efd664f29927227cc12bc9d1 to your computer and use it in GitHub Desktop.
git-http-backend with Caddy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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