summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2024-08-07 21:54:23 +0200
committerPatrick Spek <p.spek@tyil.nl>2024-08-07 23:01:29 +0200
commit9499d7d1f8fd200d1bb648d2bc155389663c48b0 (patch)
tree1471a215f0c032737d09831e61fb1bd60c404350
parent68166c2bc205c19ffc85f76bd260624a4821834f (diff)
downloadcgit-9499d7d1f8fd200d1bb648d2bc155389663c48b0.tar.gz
cgit-9499d7d1f8fd200d1bb648d2bc155389663c48b0.tar.bz2
More cgitrc options
-rw-r--r--conf.d/cgitrc18
-rw-r--r--entrypoint.sh5
2 files changed, 15 insertions, 8 deletions
diff --git a/conf.d/cgitrc b/conf.d/cgitrc
index 66ad3f2..0f0f151 100644
--- a/conf.d/cgitrc
+++ b/conf.d/cgitrc
@@ -1,11 +1,15 @@
-root-title=${CGITRC_ROOT_TITLE}
-root-desc=${CGITRC_ROOT_DESC}
-remove-suffix=1
-clone-prefix=${CGITRC_CLONE_PREFIX}
-
-source-filter=/usr/lib/cgit/filters/syntax-highlighting.py
-robots=noindex,nofollow
enable-git-config=1
+enable-index-links=0
logo-link=/
+remove-suffix=1
+robots=noindex,nofollow
+source-filter=/usr/lib/cgit/filters/syntax-highlighting.py
+
+clone-prefix=${CGITRC_CLONE_URL}
+enable-http-clone=${CGITRC_ENABLE_HTTP_CLONE}
+enable-log-filecount=${CGITRC_ENABLE_LOG_FILECOUNT}
+enable-log-linecount=${CGITRC_ENABLE_LOG_LINECOUNT}
+root-desc=${CGITRC_ROOT_DESC}
+root-title=${CGITRC_ROOT_TITLE}
scan-path=${CGITRC_SCAN_PATH}
diff --git a/entrypoint.sh b/entrypoint.sh
index de0bd75..e1e3007 100644
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -2,11 +2,14 @@
# Export all used variables
export CGITRC_CLONE_PREFIX="${CGITRC_CLONE_PREFIX:-""}"
+export CGITRC_ENABLE_HTTP_CLONE="${CGITRC_ENABLE_HTTP_CLONE:-"1"}"
+export CGITRC_ENABLE_LOG_FILECOUNT="${CGITRC_ENABLE_LOG_LINECOUNT:-"1"}"
+export CGITRC_ENABLE_LOG_LINECOUNT="${CGITRC_ENABLE_LOG_FILECOUNT:-"1"}"
export CGITRC_ROOT_DESC="${CGITRC_ROOT_DESC:-"Nondescript"}"
export CGITRC_ROOT_TITLE="${CGITRC_ROOT_TILE:-"Git repository browser"}"
export CGITRC_SCAN_PATH="${CGITRC_SCAN_PATH:-"/srv/git"}"
export HOSTNAME="${HOSTNAME:-"$(hostname -f)"}"
-export HTTPD_LISTEN_PORT="${HTTPD_LISTEN_PORT:-80}"
+export HTTPD_LISTEN_PORT="${HTTPD_LISTEN_PORT:-"80"}"
# Output debugging info
env | grep '^CGITRC_'