about summary refs log tree commit diff
path: root/web/cgit-tvl/thttpd_cgi_idx.patch
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-06-22T16·24+0300
committertazjin <tazjin@tvl.su>2022-06-27T14·15+0000
commit1094306aa95476a16f28083d4e903bb3e5c2b3dc (patch)
tree17fbb2d8bbe028d28df686d22d3da6656a00a386 /web/cgit-tvl/thttpd_cgi_idx.patch
parent32b75c45c527ec4469e6f0848e3b097c2f7b1fd6 (diff)
refactor(web/cgit-tvl): Move cgit config back out of module r/4254
It occured to me yesterday that with the config inside of the module
it is kind of difficult to test cgit locally.

This moves it back to a separate location (//web/cgit-tvl) and makes
the most important things configurable via overrides.

Change-Id: I9b0f4c60b75c31441e1718e63b5b55aba3100aae
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5893
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'web/cgit-tvl/thttpd_cgi_idx.patch')
-rw-r--r--web/cgit-tvl/thttpd_cgi_idx.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/web/cgit-tvl/thttpd_cgi_idx.patch b/web/cgit-tvl/thttpd_cgi_idx.patch
new file mode 100644
index 0000000000..67dbc0c7ab
--- /dev/null
+++ b/web/cgit-tvl/thttpd_cgi_idx.patch
@@ -0,0 +1,13 @@
+diff --git a/config.h b/config.h
+index 65ab1e3..cde470f 100644
+--- a/config.h
++++ b/config.h
+@@ -327,7 +327,7 @@
+ /* CONFIGURE: A list of index filenames to check.  The files are searched
+ ** for in this order.
+ */
+-#define INDEX_NAMES "index.html", "index.htm", "index.xhtml", "index.xht", "Default.htm", "index.cgi"
++#define INDEX_NAMES "cgit.cgi"
+ 
+ /* CONFIGURE: If this is defined then thttpd will automatically generate
+ ** index pages for directories that don't have an explicit index file.