alexandria: restore miniflux and remove tt-rss
This commit is contained in:
parent
b70c7f506e
commit
6358550525
6 changed files with 50 additions and 77 deletions
35
aspects/hosts/_alexandria/miniflux.nix
Normal file
35
aspects/hosts/_alexandria/miniflux.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ config, inputs, ... }:
|
||||
|
||||
let
|
||||
mkNginxVHosts = inputs.self.lib.mkNginxVHosts;
|
||||
in
|
||||
|
||||
{
|
||||
services = {
|
||||
miniflux = {
|
||||
enable = true;
|
||||
config = {
|
||||
LISTEN_ADDR = "localhost:8080";
|
||||
CREATE_ADMIN = 1;
|
||||
FETCHER_ALLOW_PRIVATE_NETWORKS = 1;
|
||||
POLLING_SCHEDULER = "entry_frequency";
|
||||
SCHEDULER_ENTRY_FREQUENCY_MIN_INTERVAL = 60;
|
||||
SCHEDULER_ENTRY_FREQUENCY_MAX_INTERVAL = 10080;
|
||||
};
|
||||
adminCredentialsFile = config.age.secrets.miniflux-admincreds.path;
|
||||
createDatabaseLocally = true;
|
||||
};
|
||||
|
||||
nginx.virtualHosts = mkNginxVHosts {
|
||||
domains."rss.baduhai.dev" = {
|
||||
locations."/".proxyPass = "http://${config.services.miniflux.config.LISTEN_ADDR}/";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
age.secrets.miniflux-admincreds = {
|
||||
file = "${inputs.self}/secrets/miniflux-admincreds.age";
|
||||
owner = "miniflux";
|
||||
group = "miniflux";
|
||||
};
|
||||
}
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
mkNginxVHosts = inputs.self.lib.mkNginxVHosts;
|
||||
in
|
||||
|
||||
{
|
||||
services = {
|
||||
"tt-rss" = {
|
||||
enable = true;
|
||||
selfUrlPath = "https://rss.baduhai.dev";
|
||||
singleUserMode = true;
|
||||
virtualHost = null;
|
||||
database.createLocally = true;
|
||||
pluginPackages = with pkgs; [
|
||||
tt-rss-theme-feedly
|
||||
tt-rss-plugin-af-readability
|
||||
];
|
||||
};
|
||||
|
||||
nginx.virtualHosts = mkNginxVHosts {
|
||||
domains."rss.baduhai.dev" = {
|
||||
root = "${config.services."tt-rss".root}/www";
|
||||
locations = {
|
||||
"/".index = "index.php";
|
||||
"~* /feed-icons/(\\d+)\\.ico".return = "302 /public.php?op=feed_icon&id=$1";
|
||||
"~ \\.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