summaryrefslogtreecommitdiff
path: root/f3s/git-server
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-01-10 11:45:11 +0200
committerPaul Buetow <paul@buetow.org>2026-01-10 11:45:11 +0200
commit22ce54cd4854cb946f3b1114ca52eb5a51e87f9b (patch)
treeb4d6cc99a03e96d807407d8899311e9e4b95f127 /f3s/git-server
parentbc881b2ecf8f99312f40446ceace5dcf756001f1 (diff)
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
Diffstat (limited to 'f3s/git-server')
-rw-r--r--f3s/git-server/helm-chart/templates/deployment.yaml6
1 files changed, 5 insertions, 1 deletions
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