diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-10 11:43:25 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-10 11:43:25 +0200 |
| commit | bc881b2ecf8f99312f40446ceace5dcf756001f1 (patch) | |
| tree | bb180ce2cc8a3269cf8416134fb9a2f92194360d /f3s/git-server/helm-chart | |
| parent | 716065b4b3708840fb2c3ecc293139d717f12f4d (diff) | |
Fix nginx: copy fastcgi_params to /tmp and reference it
- Copy /etc/nginx/fastcgi_params to /tmp/fastcgi_params
- Update include path to /tmp/fastcgi_params
- Fixes 'No such file or directory' error
Diffstat (limited to 'f3s/git-server/helm-chart')
| -rw-r--r-- | f3s/git-server/helm-chart/templates/deployment.yaml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/f3s/git-server/helm-chart/templates/deployment.yaml b/f3s/git-server/helm-chart/templates/deployment.yaml index 4c17e2f..b40bf4e 100644 --- a/f3s/git-server/helm-chart/templates/deployment.yaml +++ b/f3s/git-server/helm-chart/templates/deployment.yaml @@ -90,6 +90,7 @@ spec: # 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 + cp /etc/nginx/fastcgi_params /tmp/fastcgi_params 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 @@ -108,7 +109,7 @@ spec: fastcgi_param GIT_HTTP_EXPORT_ALL "";\ fastcgi_param PATH_INFO /$1/$2;\ fastcgi_param REMOTE_USER $remote_user;\ - include fastcgi_params;\ + include /tmp/fastcgi_params;\ }\ ' /tmp/conf.d/default.conf |
