Skip to content

Commit dee4682

Browse files
committed
http clone option from env
1 parent cb2c7dd commit dee4682

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cgit/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ ENV ROOT_TITLE="Git" \
1313
ROOT_DESC="My git repositories" \
1414
SECTION_FROM_STARTPATH=0 \
1515
MAX_REPO_COUNT=50 \
16-
NOPLAINEMAIL=1
16+
NOPLAINEMAIL=1 \
17+
ENABLE_HTTP_CLONE=0
1718
COPY --chown=nginx cgit.png /usr/share/webapps/cgit/
1819
COPY --chown=nginx favicon.ico /usr/share/webapps/cgit/
1920
COPY cgitrc.template /etc/

cgit/cgitrc.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ enable-log-filecount=1
2525
enable-log-linecount=1
2626
enable-git-config=1
2727
enable-commit-graph=1
28-
enable-http-clone=1
28+
enable-http-clone=$ENABLE_HTTP_CLONE
2929
remove-suffix=1
3030
snapshots=tar.gz tar.bz2 zip
3131
max-stats=quarter

0 commit comments

Comments
 (0)