nixos/mediawiki: use fastcgi.conf file which contains extra parameter

This commit is contained in:
Sandro Jäckel 2023-11-25 01:47:31 +01:00 committed by Jörg Thalheim
parent f45359e466
commit f68be841c9

View File

@ -540,9 +540,8 @@ in
locations = {
"~ ^/w/(index|load|api|thumb|opensearch_desc|rest|img_auth)\\.php$".extraConfig = ''
rewrite ^/w/(.*) /$1 break;
include ${config.services.nginx.package}/conf/fastcgi_params;
include ${config.services.nginx.package}/conf/fastcgi.conf;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:${config.services.phpfpm.pools.mediawiki.socket};
'';
"/w/images/".alias = withTrailingSlash cfg.uploadsDir;