yuki: init miniflux

This commit is contained in:
notohh 2024-01-25 22:59:26 -05:00
parent ac320e4fd6
commit be7b8e0627
Signed by: notohh
GPG key ID: BD47506D475EE86D
3 changed files with 26 additions and 0 deletions

View file

@ -8,5 +8,6 @@
./wallos.nix ./wallos.nix
./homepage.nix ./homepage.nix
./searxng.nix ./searxng.nix
./miniflux.nix
]; ];
} }

View file

@ -0,0 +1,19 @@
{
config,
lib,
...
}: {
networking.firewall.allowedTCPPorts = [9000];
sops.secrets.miniflux = {};
services.miniflux = {
enable = true;
adminCredentialsFile = config.sops.secrets.miniflux.path;
config = {
LISTEN_ADDR = "0.0.0.0";
PORT = 9000;
DATABASE_URL = lib.mkForce "host=192.168.1.211 port=5432 user=miniflux password=miniflux dbname=miniflux sslmode=disable";
};
};
}

View file

@ -45,6 +45,11 @@ _: {
entrypoints = ["web"]; entrypoints = ["web"];
service = "hass"; service = "hass";
}; };
miniflux = {
rule = "Host(`news.internal.flake.sh`)";
entrypoints = ["web"];
service = "miniflux";
};
}; };
services = { services = {
stash.loadBalancer.servers = [{url = "http://localhost:9999";}]; stash.loadBalancer.servers = [{url = "http://localhost:9999";}];
@ -54,6 +59,7 @@ _: {
wallos.loadBalancer.servers = [{url = "http://localhost:8282";}]; wallos.loadBalancer.servers = [{url = "http://localhost:8282";}];
searxng.loadBalancer.servers = [{url = "http://localhost:8100";}]; searxng.loadBalancer.servers = [{url = "http://localhost:8100";}];
hass.loadBalancer.servers = [{url = "http://localhost:8123";}]; hass.loadBalancer.servers = [{url = "http://localhost:8123";}];
miniflux.loadBalancer.servers = [{url = "http://localhost:9000";}];
}; };
}; };
}; };