diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-10 20:28:47 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-10 20:28:47 +0200 |
| commit | cb3829b84863e60f999fcbac240c320792d87bf5 (patch) | |
| tree | 6c330bade85fdf0cef360b9f86650eba95c27d84 /f3s/git-server/helm-chart/templates | |
| parent | 90abde069fac1f5d4741ff1773462ff5d5f6916e (diff) | |
Simplify git-server path from /repos/repos to /repos
Changes:
- Mount PVC with subPath: repos in deployment
- Update cgit scan-path from /repos/repos to /repos
- Update git-http-backend GIT_PROJECT_ROOT to /repos
- Update all documentation to reflect simplified paths
This eliminates the redundant /repos/repos duplication and simplifies
all git URLs to ssh://git@r0:30022/repos/<repo>.git format.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'f3s/git-server/helm-chart/templates')
| -rw-r--r-- | f3s/git-server/helm-chart/templates/configmap-cgit.yaml | 4 | ||||
| -rw-r--r-- | f3s/git-server/helm-chart/templates/deployment.yaml | 10 |
2 files changed, 8 insertions, 6 deletions
diff --git a/f3s/git-server/helm-chart/templates/configmap-cgit.yaml b/f3s/git-server/helm-chart/templates/configmap-cgit.yaml index 9aba781..519ab26 100644 --- a/f3s/git-server/helm-chart/templates/configmap-cgit.yaml +++ b/f3s/git-server/helm-chart/templates/configmap-cgit.yaml @@ -24,6 +24,6 @@ data: # Remove .git suffix from repository URLs remove-suffix=1 - # Scan for repositories in /repos/repos + # Scan for repositories in /repos # This must be the last setting in the file - scan-path=/repos/repos + scan-path=/repos diff --git a/f3s/git-server/helm-chart/templates/deployment.yaml b/f3s/git-server/helm-chart/templates/deployment.yaml index e0fcaf3..1ed7486 100644 --- a/f3s/git-server/helm-chart/templates/deployment.yaml +++ b/f3s/git-server/helm-chart/templates/deployment.yaml @@ -77,6 +77,7 @@ spec: volumeMounts: - name: repos mountPath: /repos + subPath: repos - name: git-ssh-writable mountPath: /home/git/.ssh - name: ssh-host-keys @@ -102,11 +103,11 @@ spec: args: - | # Add git safe.directory exception for repository ownership - git config --global --add safe.directory /repos/repos/conf.git + git config --global --add safe.directory /repos/conf.git # 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 + git config --file /repos/conf.git/config http.receivepack true + git config --file /repos/conf.git/config http.uploadpack true # Copy nginx configs to writable location and modify them cp /etc/nginx/nginx.conf /tmp/nginx.conf @@ -127,7 +128,7 @@ spec: location ~ ^/([^/]+\\.git)/(.*) {\ fastcgi_pass unix:/tmp/fcgiwrap.sock;\ fastcgi_param SCRIPT_FILENAME /tmp/git-http-backend;\ - fastcgi_param GIT_PROJECT_ROOT /repos/repos;\ + fastcgi_param GIT_PROJECT_ROOT /repos;\ fastcgi_param GIT_HTTP_EXPORT_ALL "";\ fastcgi_param PATH_INFO /$1/$2;\ fastcgi_param REMOTE_USER $remote_user;\ @@ -160,6 +161,7 @@ spec: volumeMounts: - name: repos mountPath: /repos + subPath: repos readOnly: false - name: cgit-config mountPath: /etc/cgitrc |
