summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2024-08-07 22:07:28 +0200
committerPatrick Spek <p.spek@tyil.nl>2024-08-07 23:01:30 +0200
commitf3ac951cb880e14b0c0c8b9d1b4bc673c599f51b (patch)
tree3a889493f2a97bdf450b515c8225ee6fe226fa7b
parentd4fcaf0934b30fd1dd6248ca7c5c3be820935f7d (diff)
downloadcgit-f3ac951cb880e14b0c0c8b9d1b4bc673c599f51b.tar.gz
cgit-f3ac951cb880e14b0c0c8b9d1b4bc673c599f51b.tar.bz2
Add snapshots
-rw-r--r--conf.d/cgitrc1
-rw-r--r--entrypoint.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/conf.d/cgitrc b/conf.d/cgitrc
index c6cf261..5725e77 100644
--- a/conf.d/cgitrc
+++ b/conf.d/cgitrc
@@ -12,5 +12,6 @@ enable-log-filecount=${CGITRC_ENABLE_LOG_FILECOUNT}
enable-log-linecount=${CGITRC_ENABLE_LOG_LINECOUNT}
root-desc=${CGITRC_ROOT_DESC}
root-title=${CGITRC_ROOT_TITLE}
+snapshots=${CGITRC_SNAPSHOTS}
scan-path=${CGITRC_SCAN_PATH}
diff --git a/entrypoint.sh b/entrypoint.sh
index e1e3007..3182e98 100644
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -8,6 +8,7 @@ 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 CGITRC_SNAPSHOTS="${CGITRC_SNAPSHOTS:-"tar.gz"}"
export HOSTNAME="${HOSTNAME:-"$(hostname -f)"}"
export HTTPD_LISTEN_PORT="${HTTPD_LISTEN_PORT:-"80"}"