summaryrefslogtreecommitdiff
path: root/f3s/git-server
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-01-09 20:59:40 +0200
committerPaul Buetow <paul@buetow.org>2026-01-09 20:59:40 +0200
commit329e71b3aefbf2a7c89e6c25e1a73cdd1f60be0a (patch)
treee39f8b807fc954f5efbeae1422c5a50944184e4b /f3s/git-server
parenta72e1b9e6b9df1739097405791a91a7455215b56 (diff)
Fix cgit nginx config - update correct socket path in default.conf
The fcgiwrap socket path is configured in /etc/nginx/conf.d/default.conf, not cgit.conf. Copy conf.d directory to /tmp and update socket path there. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'f3s/git-server')
-rw-r--r--f3s/git-server/helm-chart/templates/deployment.yaml8
1 files changed, 5 insertions, 3 deletions
diff --git a/f3s/git-server/helm-chart/templates/deployment.yaml b/f3s/git-server/helm-chart/templates/deployment.yaml
index c029042..d83baf7 100644
--- a/f3s/git-server/helm-chart/templates/deployment.yaml
+++ b/f3s/git-server/helm-chart/templates/deployment.yaml
@@ -79,16 +79,18 @@ spec:
command: ["/bin/sh", "-c"]
args:
- |
- # Copy nginx config to writable location and modify it
+ # 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
sed -i 's/^user nginx;//' /tmp/nginx.conf
sed -i 's|pid /var/run/nginx.pid;|pid /tmp/nginx.pid;|' /tmp/nginx.conf
+ sed -i 's|/etc/nginx/conf.d/|/tmp/conf.d/|' /tmp/nginx.conf
+ # Update default.conf to use /tmp socket
+ sed -i 's|unix:/var/run/fcgiwrap.sock|unix:/tmp/fcgiwrap.sock|' /tmp/conf.d/default.conf
# Start fcgiwrap with socket in /tmp
spawn-fcgi -s /tmp/fcgiwrap.sock -n -- /usr/bin/fcgiwrap &
sleep 1
chmod 666 /tmp/fcgiwrap.sock
- # Update cgit.conf to use /tmp socket
- sed -i 's|unix:/var/run/fcgiwrap.sock|unix:/tmp/fcgiwrap.sock|' /etc/nginx/conf.d/cgit.conf || true
exec nginx -c /tmp/nginx.conf -g 'daemon off;'
ports:
- containerPort: 80