1
0
mirror of https://github.com/nginx-proxy/nginx-proxy synced 2024-09-16 17:01:51 +02:00

fix: use fastcgi.conf on alpine and fastcgi_params on debien

This commit is contained in:
Nicolas Duchon 2024-07-29 18:15:04 +02:00
parent 434a089251
commit 5f4e77b6e7

View File

@ -264,8 +264,14 @@
include uwsgi_params;
uwsgi_pass {{ trim $proto }}://{{ trim $upstream }};
{{- else if eq $proto "fastcgi" }}
root {{ trim .VhostRoot }};
{{- if (exists "/etc/nginx/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 }};
{{- if ne $keepalive "disabled" }}
fastcgi_keep_conn on;