From 110f55291ee0a3251a849b2c9546434e030cae8a Mon Sep 17 00:00:00 2001 From: Rico Ullmann Date: Sat, 5 Mar 2022 17:08:17 +0100 Subject: [PATCH] nginx: add fpm.conf --- bundles/nginx/files/fpm.conf | 18 ++++++++++++++++++ bundles/nginx/items.py | 5 +++++ 2 files changed, 23 insertions(+) create mode 100644 bundles/nginx/files/fpm.conf diff --git a/bundles/nginx/files/fpm.conf b/bundles/nginx/files/fpm.conf new file mode 100644 index 0000000..94263e7 --- /dev/null +++ b/bundles/nginx/files/fpm.conf @@ -0,0 +1,18 @@ +fastcgi_split_path_info ^(.+\.php)(/.+)$; +if (!-f $document_root$fastcgi_script_name) { + return 404; +} + +fastcgi_index index.php; + +include fastcgi_params; + +fastcgi_param PATH_INFO $fastcgi_path_info; +fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name; +fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; +fastcgi_param HTTP_AUTHORIZATION $http_authorization; + +fastcgi_buffers 8 16k; +fastcgi_buffer_size 32k; + +client_body_buffer_size 128k; diff --git a/bundles/nginx/items.py b/bundles/nginx/items.py index 21d1895..677ed7a 100644 --- a/bundles/nginx/items.py +++ b/bundles/nginx/items.py @@ -50,6 +50,11 @@ files = { 'svc_systemd:nginx:restart', }, }, + '/etc/nginx/fpm.conf': { + 'triggers': { + 'svc_systemd:nginx:restart', + }, + }, '/etc/nginx/sites/stub_status': { 'triggers': { 'svc_systemd:nginx:restart',