diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-09 11:39:34 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-09 11:39:34 +0200 |
| commit | e5d0610d4a0c702a68cf73200f991f607b0ee7b5 (patch) | |
| tree | 499d75c5a381d82e29a7409f06f994436d1425f5 /f3s/git-server/helm-chart | |
| parent | 33e2bf2c438405f1ffa5c233eda141efdbd8aca2 (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.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 |
