From 329e71b3aefbf2a7c89e6c25e1a73cdd1f60be0a Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 9 Jan 2026 20:59:40 +0200 Subject: 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 --- f3s/git-server/helm-chart/templates/deployment.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'f3s/git-server') 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 -- cgit v1.2.3