1
0
mirror of https://github.com/nginx-proxy/nginx-proxy synced 2024-11-08 07:49:22 +01:00

Merge pull request #2497 from nginx-proxy/2496

fix: use fastcgi.conf on alpine and fastcgi_params on debien
This commit is contained in:
Nicolas Duchon 2024-07-29 18:50:33 +02:00 committed by GitHub
commit 290d275a68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -264,8 +264,14 @@
include uwsgi_params; include uwsgi_params;
uwsgi_pass {{ trim $proto }}://{{ trim $upstream }}; uwsgi_pass {{ trim $proto }}://{{ trim $upstream }};
{{- else if eq $proto "fastcgi" }} {{- else if eq $proto "fastcgi" }}
root {{ trim .VhostRoot }}; {{- if (exists "/etc/nginx/fastcgi.conf") }}
include fastcgi.conf; include fastcgi.conf;
{{- else if (exists "/etc/nginx/fastcgi_params") }}
include fastcgi_params;
{{- else }}
# neither /etc/nginx/fastcgi.conf nor /etc/nginx/fastcgi_params found, fastcgi won't work
{{- end }}
root {{ trim .VhostRoot }};
fastcgi_pass {{ trim $upstream }}; fastcgi_pass {{ trim $upstream }};
{{- if ne $keepalive "disabled" }} {{- if ne $keepalive "disabled" }}
fastcgi_keep_conn on; fastcgi_keep_conn on;