freshrss: remove nginx virtual host

This commit is contained in:
Payas Relekar 2023-09-18 14:59:03 +05:30
parent 0f2d56e4af
commit 9cf9172b62

View file

@ -1,7 +1,4 @@
{ config, pkgs, ... }:
let
cfg = config.services.freshrss;
in
{ ... }:
{
systemd.tmpfiles.rules = [
"f /run/agenix/freshrss 0770 freshrss freshrss -"
@ -20,35 +17,6 @@ in
};
virtualHost = "rss.bhankas.org";
};
nginx = {
virtualHosts = {
"rss.bhankas.org" = {
addSSL = true;
enableACME = true;
locations = {
"/".extraConfig = ''
proxy_set_header Host $host;
'';
"~ ^.+?\.php(/.*)?$".extraConfig = ''
fastcgi_pass unix:${config.services.phpfpm.pools.${cfg.pool}.socket};
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.conf;
proxy_set_header Host $host;
'';
};
};
};
};
};
security.acme = {