summaryrefslogtreecommitdiff
path: root/f3s/git-server/helm-chart
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-01-09 11:39:34 +0200
committerPaul Buetow <paul@buetow.org>2026-01-09 11:39:34 +0200
commite5d0610d4a0c702a68cf73200f991f607b0ee7b5 (patch)
tree499d75c5a381d82e29a7409f06f994436d1425f5 /f3s/git-server/helm-chart
parent33e2bf2c438405f1ffa5c233eda141efdbd8aca2 (diff)
Fix fcgiwrap socket permissions for nginx workers
Nginx workers (running as user nginx) couldn't connect to fcgiwrap.sock created by root. Add chmod 666 to make the socket world-accessible.
Diffstat (limited to 'f3s/git-server/helm-chart')
-rw-r--r--f3s/git-server/helm-chart/templates/deployment.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/f3s/git-server/helm-chart/templates/deployment.yaml b/f3s/git-server/helm-chart/templates/deployment.yaml
index b867add..ac2a48d 100644
--- a/f3s/git-server/helm-chart/templates/deployment.yaml
+++ b/f3s/git-server/helm-chart/templates/deployment.yaml
@@ -68,7 +68,10 @@ spec:
- |
# Remove 'user nginx;' directive to avoid setgid errors when running as root
sed -i 's/^user nginx;//' /etc/nginx/nginx.conf
+ # Start fcgiwrap and set socket permissions for nginx user
spawn-fcgi -s /var/run/fcgiwrap.sock -n -- /usr/bin/fcgiwrap &
+ sleep 1
+ chmod 666 /var/run/fcgiwrap.sock
exec nginx -g 'daemon off;'
ports:
- containerPort: 80