aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-20 17:52:32 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-20 18:02:19 +0800
commitf4c3bd4a2eae6861a6b6c053ab62b6538b64a1ff (patch)
treeb1b7bced8537f448e31d686e88b9b5c6a7c2f59a /docker
parent9c2ef5c38ed57ca5fbd5d6ffe41f802001810abb (diff)
downloadcrupest-f4c3bd4a2eae6861a6b6c053ab62b6538b64a1ff.tar.gz
crupest-f4c3bd4a2eae6861a6b6c053ab62b6538b64a1ff.tar.bz2
crupest-f4c3bd4a2eae6861a6b6c053ab62b6538b64a1ff.zip
feat(cru-py): use new template format.
Diffstat (limited to 'docker')
-rw-r--r--docker/git-server/Dockerfile2
-rw-r--r--docker/git-server/cgitrc.template2
2 files changed, 2 insertions, 2 deletions
diff --git a/docker/git-server/Dockerfile b/docker/git-server/Dockerfile
index 4f51485..389b777 100644
--- a/docker/git-server/Dockerfile
+++ b/docker/git-server/Dockerfile
@@ -6,7 +6,7 @@ RUN --mount=type=secret,id=git-server,required=true \
htpasswd -cb /user-info ${CRUPEST_GIT_SERVER_USERNAME} ${CRUPEST_GIT_SERVER_PASSWORD}
ARG ROOT_URL
ADD cgitrc.template /cgitrc.template
-RUN sed "s|@@ROOT_URL@@|${ROOT_URL}|g" /cgitrc.template > /cgitrc
+RUN sed "s|@@CRUPEST_ROOT_URL@@|${ROOT_URL}|g" /cgitrc.template > /cgitrc
FROM debian:latest
RUN apt-get update && apt-get install -y \
diff --git a/docker/git-server/cgitrc.template b/docker/git-server/cgitrc.template
index 3d65685..f3c61eb 100644
--- a/docker/git-server/cgitrc.template
+++ b/docker/git-server/cgitrc.template
@@ -10,7 +10,7 @@ enable-log-filecount=1
enable-log-linecount=1
section-from-path=1
-clone-url=@@ROOT_URL@@/$CGIT_REPO_URL
+clone-url=@@CRUPEST_ROOT_URL@@/$CGIT_REPO_URL
snapshots=tar.gz tar.bz2 zip
source-filter=/usr/lib/cgit/filters/syntax-highlighting.py
about-filter=/usr/lib/cgit/filters/about-formatting.sh