From 05072cb766a6200e859a402258ccf1fde1b1adec Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Sun, 9 Mar 2025 17:31:21 +0800 Subject: feat(service): mv config to docker imagei, better pri/pub git. --- services/docker/git-server/app/cgit/common | 19 +++++++++++++++++++ services/docker/git-server/app/cgit/private | 5 +++++ services/docker/git-server/app/cgit/public | 4 ++++ 3 files changed, 28 insertions(+) create mode 100644 services/docker/git-server/app/cgit/common create mode 100644 services/docker/git-server/app/cgit/private create mode 100644 services/docker/git-server/app/cgit/public (limited to 'services/docker/git-server/app/cgit') diff --git a/services/docker/git-server/app/cgit/common b/services/docker/git-server/app/cgit/common new file mode 100644 index 0000000..90dda60 --- /dev/null +++ b/services/docker/git-server/app/cgit/common @@ -0,0 +1,19 @@ +css=/git/static/cgit.css +logo=/git/static/cgit.png +root-title=crupest Git Repos +source-filter=/usr/lib/cgit/filters/syntax-highlighting.py +about-filter=/usr/lib/cgit/filters/about-formatting.sh + +enable-http-clone=0 +enable-commit-graph=1 +enable-index-links=1 +enable-index-owner=0 +enable-log-filecount=1 +enable-log-linecount=1 +enable-git-config=1 +snapshots=tar.gz tar.bz2 zip + +readme=:README-repo.md +readme=:README.md +readme=:README +section-from-path=1 diff --git a/services/docker/git-server/app/cgit/private b/services/docker/git-server/app/cgit/private new file mode 100644 index 0000000..a5710b2 --- /dev/null +++ b/services/docker/git-server/app/cgit/private @@ -0,0 +1,5 @@ +cache-root=/var/cache/cgit/private +include=/app/cgit/common +strict-export=cgit-export +clone-url=$CRUPEST_ROOT_URL/git/private$CGIT_REPO_URL +scan-path=/git/repos/private diff --git a/services/docker/git-server/app/cgit/public b/services/docker/git-server/app/cgit/public new file mode 100644 index 0000000..022a333 --- /dev/null +++ b/services/docker/git-server/app/cgit/public @@ -0,0 +1,4 @@ +cache-root=/var/cache/cgit/public +include=/app/cgit/common +clone-url=$CRUPEST_ROOT_URL/git$CGIT_REPO_URL +scan-path=/git/repos/public -- cgit v1.2.3