alexandria: replace miniflux and linkwarden with tt-rss
This commit is contained in:
parent
f6500b025a
commit
fe1c931ca6
7 changed files with 40 additions and 105 deletions
39
aspects/hosts/_alexandria/ttrss.nix
Normal file
39
aspects/hosts/_alexandria/ttrss.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
mkNginxVHosts = inputs.self.lib.mkNginxVHosts;
|
||||
in
|
||||
|
||||
{
|
||||
services = {
|
||||
"tt-rss" = {
|
||||
enable = true;
|
||||
selfUrlPath = "https://rss.baduhai.dev";
|
||||
singleUserMode = true;
|
||||
virtualHost = null;
|
||||
database.createLocally = true;
|
||||
};
|
||||
|
||||
nginx.virtualHosts = mkNginxVHosts {
|
||||
domains."rss.baduhai.dev" = {
|
||||
root = "${config.services."tt-rss".root}/www";
|
||||
|
||||
locations."/".index = "index.php";
|
||||
|
||||
locations."~* /feed-icons/(\\d+)\\.ico".return = "302 /public.php?op=feed_icon&id=$1";
|
||||
|
||||
locations."~ \\.php$" = {
|
||||
extraConfig = ''
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass unix:${config.services.phpfpm.pools.${config.services."tt-rss".pool}.socket};
|
||||
fastcgi_index index.php;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue