aboutsummaryrefslogtreecommitdiffstats
path: root/image/Caddyfile
diff options
context:
space:
mode:
Diffstat (limited to 'image/Caddyfile')
-rw-r--r--image/Caddyfile26
1 files changed, 26 insertions, 0 deletions
diff --git a/image/Caddyfile b/image/Caddyfile
new file mode 100644
index 0000000..b50dccc
--- /dev/null
+++ b/image/Caddyfile
@@ -0,0 +1,26 @@
+http:// {
+ route {
+ root * /var/lib/git/static
+ file_server {
+ pass_thru
+ }
+ }
+
+ route {
+ root * /usr/share/webapps/cgit
+ file_server {
+ pass_thru
+ }
+ }
+
+ reverse_proxy unix//run/fcgiwrap/fcgiwrap.sock {
+ transport fastcgi {
+ env SCRIPT_FILENAME /usr/share/webapps/cgit/cgit.cgi
+ env PATH_INFO {http.request.uri}
+ env QUERY_STRING {query}
+ # env GIT_HTTP_EXPORT_ALL 1
+ # env GIT_PROJECT_ROOT /var/lib/git/repositories
+ # env HOME /var/lib/git
+ }
+ }
+}