driver: overlay
services:
web:
- image: cjpalmer/gitweb:0.1.0
+ image: cjpalmer/gitweb:0.2.0
volumes:
- /srv/git:/srv/git:ro
- ./gitweb.conf:/etc/gitweb.conf
- proxy
- backend
cgi:
- image: cjpalmer/gitweb-cgi:0.1.0
+ image: cjpalmer/gitweb-cgi:0.2.0
+ environment:
+ - BASE_URL=https://git.purplebirdman.com/
volumes:
- /srv/git:/srv/git:ro
- ./gitweb.conf:/etc/gitweb.conf
services:
web:
build: web
- image: cjpalmer/gitweb:0.1.0
+ image: cjpalmer/gitweb:0.2.0
volumes:
- /srv/git:/srv/git:ro
- ./gitweb.conf:/etc/gitweb.conf
- 80:80
cgi:
build: cgi
- image: cjpalmer/gitweb-cgi:0.1.0
+ image: cjpalmer/gitweb-cgi:0.2.0
+ environment:
+ - BASE_URL=
volumes:
- /srv/git:/srv/git:ro
- ./gitweb.conf:/etc/gitweb.conf
$git_temp = "/tmp";
# target of the home link on top of all pages
-$home_link = $my_uri || "/";
+$home_link = "/";
# html text to include at home page
-$home_text = "indextext.html";
+#$home_text = "indextext.html";
# file with project list; by default, simply scan the projectroot dir.
$projects_list = $projectroot;
# stylesheet to use
-@stylesheets = ("static/gitweb.css");
+#@stylesheets = ("static/gitweb.css");
# javascript code for gitweb
-$javascript = "static/gitweb.js";
+#$javascript = "static/gitweb.js";
# logo to use
-$logo = "static/git-logo.png";
+#$logo = "static/git-logo.png";
# the 'favicon'
-$favicon = "static/git-favicon.png";
+#$favicon = "static/git-favicon.png";
# git-diff-tree(1) options to use for generated patches
#@diff_opts = ("-M");
@diff_opts = ();
+
+# beautiful paths
+$feature{'pathinfo'}{'default'} = [1];
+
+# by default, <base href> is incorrect behind a reverse proxy
+$per_request_config = 1;
+
+$my_uri = "/";
+$base_url = $ENV{BASE_URL};