Add freshrss

This commit is contained in:
Ivan R. 2023-08-23 17:27:58 +05:00
parent b264ee5f8c
commit 62c81b3337
No known key found for this signature in database
GPG key ID: 56C7BAAE859B302C
4 changed files with 28 additions and 2 deletions

View file

@ -22,6 +22,7 @@
./programs/clickhouse.nix
./programs/docker.nix
./programs/microboard.nix
./programs/freshrss.nix
];
# Enable flakes

View file

@ -0,0 +1,16 @@
{ config, ... }:
{
services.freshrss = {
enable = true;
database = {
type = "pgsql";
host = "127.0.0.1";
port = 5432;
passFile = "/var/lib/secrets/freshrss/dbpass.txt";
};
baseUrl = "https://freshrss.comfycamp.space";
defaultUser = "lumin";
passwordFile = "/var/lib/secrets/freshrss/password.txt";
virtualHost = "freshrss.comfycamp.space";
};
}

View file

@ -115,6 +115,12 @@ in {
};
};
# Freshrss
"freshrss.comfycamp.space" = {
useACMEHost = "comfycamp.space";
forceSSL = true;
};
# Mastodon
"m.comfycamp.space" = {
useACMEHost = "comfycamp.space";

View file

@ -75,6 +75,9 @@
authentication = pkgs.lib.mkOverride 10 ''
#type database DBuser auth-method optional_ident_map
local sameuser all peer map=superuser_map
#type database DBuser origin-address auth-method
host all all 127.0.0.1/32 scram-sha-256
'';
};
}