yuki: init miniflux
This commit is contained in:
parent
ac320e4fd6
commit
be7b8e0627
3 changed files with 26 additions and 0 deletions
|
@ -8,5 +8,6 @@
|
||||||
./wallos.nix
|
./wallos.nix
|
||||||
./homepage.nix
|
./homepage.nix
|
||||||
./searxng.nix
|
./searxng.nix
|
||||||
|
./miniflux.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
19
hosts/yuki/services/miniflux.nix
Normal file
19
hosts/yuki/services/miniflux.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -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";}];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue