From bc881b2ecf8f99312f40446ceace5dcf756001f1 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 10 Jan 2026 11:43:25 +0200 Subject: 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 --- f3s/git-server/helm-chart/templates/deployment.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'f3s/git-server') 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 -- cgit v1.2.3