From 22ce54cd4854cb946f3b1114ca52eb5a51e87f9b Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 10 Jan 2026 11:45:11 +0200 Subject: Enable HTTP git operations in repository config - Make /repos mount read-write on cgit container - Set http.receivepack=true and http.uploadpack=true in git config - Allows git clone/fetch/push via HTTP - Fixes 403 Forbidden error from git-http-backend --- f3s/git-server/helm-chart/templates/deployment.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/f3s/git-server/helm-chart/templates/deployment.yaml b/f3s/git-server/helm-chart/templates/deployment.yaml index b40bf4e..f6e6d5b 100644 --- a/f3s/git-server/helm-chart/templates/deployment.yaml +++ b/f3s/git-server/helm-chart/templates/deployment.yaml @@ -87,6 +87,10 @@ spec: - | # Note: joseluisq/alpine-cgit already has git installed, no need to install again + # Configure git repository for HTTP access + git config --file /repos/repos/conf.git/config http.receivepack true + git config --file /repos/repos/conf.git/config http.uploadpack true + # Copy nginx configs to writable location and modify them cp /etc/nginx/nginx.conf /tmp/nginx.conf cp -r /etc/nginx/conf.d /tmp/conf.d @@ -132,7 +136,7 @@ spec: volumeMounts: - name: repos mountPath: /repos - readOnly: true + readOnly: false - name: cgit-config mountPath: /etc/cgitrc subPath: cgitrc -- cgit v1.2.3