freshrss: remove duplicate config

This commit is contained in:
Payas Relekar 2023-09-18 15:00:45 +05:30
parent d4a3af2e77
commit 6600f49283

View file

@ -1,7 +1,4 @@
{ config, pkgs, ... }:
let
cfg = config.services.freshrss;
in
{ ... }:
{
systemd.tmpfiles.rules = [
"f /run/agenix/freshrss 0770 freshrss freshrss -"
@ -32,17 +29,6 @@ in
'';
"~ ^.+?\.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;
'';
};
@ -53,7 +39,26 @@ in
security.acme = {
acceptTerms = true;
certs = {
certs = {
"rss.bhankas.org" = {
email = "admin@bhankas.org";
dnsResolver = "1.1.1.1:53";