diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-09 11:33:53 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-09 11:33:53 +0200 |
| commit | 8dc4ee7159e19d027a3c2b2f081c57e56f98cacf (patch) | |
| tree | be2efd986a719fb1d49a40e4145726166568c4b2 /f3s/git-server | |
| parent | 3e39fcb2899f9f0f3d0e423bdfb3b2d52e1ab75f (diff) | |
Remove 'user nginx;' directive to fix nginx worker errors
When running as root with fsGroup, nginx workers fail trying to setgid.
Remove the 'user nginx;' directive from nginx.conf at startup using sed.
This allows nginx to run workers as root without permission errors.
Diffstat (limited to 'f3s/git-server')
| -rw-r--r-- | f3s/git-server/helm-chart/templates/deployment.yaml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/f3s/git-server/helm-chart/templates/deployment.yaml b/f3s/git-server/helm-chart/templates/deployment.yaml index c077aa5..12a235a 100644 --- a/f3s/git-server/helm-chart/templates/deployment.yaml +++ b/f3s/git-server/helm-chart/templates/deployment.yaml @@ -69,6 +69,8 @@ spec: command: ["/bin/sh", "-c"] args: - | + # Remove 'user nginx;' directive to avoid setgid errors when running as root + sed -i 's/^user nginx;//' /etc/nginx/nginx.conf spawn-fcgi -s /var/run/fcgiwrap.sock -n -- /usr/bin/fcgiwrap & exec nginx -g 'daemon off;' ports: |
