diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-09 11:39:34 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-09 19:40:51 +0200 |
| commit | 9bcf2d3961c68ebb4ac4d44af0027391f3cf251d (patch) | |
| tree | dbb2afe3b5c494cd85284a0a98508e32e395c626 | |
| parent | db7d6238a50622ee1428fda475548819189f788b (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.
| -rw-r--r-- | f3s/git-server/helm-chart/templates/deployment.yaml | 3 |
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 |
