freshrss: fix greader-api
This commit is contained in:
parent
d2596f8532
commit
fe9fb739a9
@ -155,9 +155,17 @@ in
|
|||||||
virtualHosts.${cfg.virtualHost} = {
|
virtualHosts.${cfg.virtualHost} = {
|
||||||
root = "${cfg.package}/p";
|
root = "${cfg.package}/p";
|
||||||
|
|
||||||
|
# php files handling
|
||||||
|
# this regex is mandatory because of the API
|
||||||
locations."~ ^.+?\.php(/.*)?$".extraConfig = ''
|
locations."~ ^.+?\.php(/.*)?$".extraConfig = ''
|
||||||
fastcgi_pass unix:${config.services.phpfpm.pools.${cfg.pool}.socket};
|
fastcgi_pass unix:${config.services.phpfpm.pools.${cfg.pool}.socket};
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||||||
|
# By default, the variable PATH_INFO is not set under PHP-FPM
|
||||||
|
# But FreshRSS API greader.php need it. If you have a “Bad Request” error, double check this var!
|
||||||
|
# NOTE: the separate $path_info variable is required. For more details, see:
|
||||||
|
# https://trac.nginx.org/nginx/ticket/321
|
||||||
|
set $path_info $fastcgi_path_info;
|
||||||
|
fastcgi_param PATH_INFO $path_info;
|
||||||
include ${pkgs.nginx}/conf/fastcgi_params;
|
include ${pkgs.nginx}/conf/fastcgi_params;
|
||||||
include ${pkgs.nginx}/conf/fastcgi.conf;
|
include ${pkgs.nginx}/conf/fastcgi.conf;
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user