From 22eb5a10cbc2915e5eecc2c2d8bb72d8ac8c3e90 Mon Sep 17 00:00:00 2001 From: Steve Worley Date: Thu, 2 May 2024 10:41:24 +1000 Subject: [PATCH 1/2] Allow downstream to extend fastcgi params --- images/nginx/fastcgi.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/images/nginx/fastcgi.conf b/images/nginx/fastcgi.conf index 9cbc41e66..6cda91c57 100644 --- a/images/nginx/fastcgi.conf +++ b/images/nginx/fastcgi.conf @@ -13,6 +13,9 @@ set_by_lua_block $remote_addr_clean { end } +# Allow downstreams to add fastcgi_params. +include /etc/nginx/fastcgi/*.conf; + fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; From 32cf97966fff1139fbcf86a1a34f2e52d22f01c0 Mon Sep 17 00:00:00 2001 From: Steve Worley Date: Thu, 2 May 2024 16:55:13 +1000 Subject: [PATCH 2/2] Update fastcgi.conf --- images/nginx/fastcgi.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images/nginx/fastcgi.conf b/images/nginx/fastcgi.conf index 6cda91c57..9c98245cb 100644 --- a/images/nginx/fastcgi.conf +++ b/images/nginx/fastcgi.conf @@ -13,7 +13,8 @@ set_by_lua_block $remote_addr_clean { end } -# Allow downstreams to add fastcgi_params. +# Allow downstreams to add fastcgi_params, usually any values included +# this way may be overwritten by the default values below. include /etc/nginx/fastcgi/*.conf; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;