+++ /dev/null
-# Copyright (c) 2023 Jakub Czajka <jakub@ekhem.eu.org>
-# License: GPL-3.0 or later.
-
-# path to git projects (<project>.git)
-$projectroot = "/srv/git";
-
-# directory to use for temp files
-$git_temp = "/tmp";
-
-# target of the home link on top of all pages
-#$home_link = $my_uri || "/";
-
-# html text to include at home page
-#$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");
-
-# javascript code for gitweb
-#$javascript = "static/gitweb.js";
-
-# logo to use
-#$logo = "static/git-logo.png";
-
-# the 'favicon'
-#$favicon = "static/git-favicon.png";
-
-# git-diff-tree(1) options to use for generated patches
-#@diff_opts = ("-M");
-@diff_opts = ();
-
-# only show projects with the git-daemon-export-ok file
-our $export_ok = "git-daemon-export-ok";
--- /dev/null
+# Copyright (c) 2023 Jakub Czajka <jakub@ekhem.eu.org>
+# License: GPL-3.0 or later.
+
+# path to git projects (<project>.git)
+${dollar}projectroot = "${git_home_dir}";
+
+# directory to use for temp files
+${dollar}git_temp = "/tmp";
+
+# target of the home link on top of all pages
+#${dollar}home_link = ${dollar}my_uri || "/";
+
+# html text to include at home page
+#${dollar}home_text = "indextext.html";
+
+# file with project list; by default, simply scan the projectroot dir.
+#${dollar}projects_list = ${dollar}projectroot;
+
+# stylesheet to use
+#@stylesheets = ("static/gitweb.css");
+
+# javascript code for gitweb
+#${dollar}javascript = "static/gitweb.js";
+
+# logo to use
+#${dollar}logo = "static/git-logo.png";
+
+# the 'favicon'
+#${dollar}favicon = "static/git-favicon.png";
+
+# git-diff-tree(1) options to use for generated patches
+#@diff_opts = ("-M");
+@diff_opts = ();
+
+# only show projects with the git-daemon-export-ok file
+#our ${dollar}export_ok = "git-daemon-export-ok";
--- /dev/null
+# Copyright (c) 2023 Jakub Czajka <jakub@ekhem.eu.org>
+# License: GPL-3.0 or later.
+
+# path to git projects (<project>.git)
+${dollar}projectroot = "${git_home_dir}";
+
+# directory to use for temp files
+${dollar}git_temp = "/tmp";
+
+# target of the home link on top of all pages
+#${dollar}home_link = ${dollar}my_uri || "/";
+
+# html text to include at home page
+#${dollar}home_text = "indextext.html";
+
+# file with project list; by default, simply scan the projectroot dir.
+#${dollar}projects_list = ${dollar}projectroot;
+
+# stylesheet to use
+#@stylesheets = ("static/gitweb.css");
+
+# javascript code for gitweb
+#${dollar}javascript = "static/gitweb.js";
+
+# logo to use
+#${dollar}logo = "static/git-logo.png";
+
+# the 'favicon'
+#${dollar}favicon = "static/git-favicon.png";
+
+# git-diff-tree(1) options to use for generated patches
+#@diff_opts = ("-M");
+@diff_opts = ();
+
+# only show projects with the git-daemon-export-ok file
+our ${dollar}export_ok = "git-daemon-export-ok";