feat(rpi4): add miniflux

This commit is contained in:
Felix Schröter 2021-12-11 19:40:53 +01:00
parent 7f4fc67b57
commit 9420f787b7
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
2 changed files with 20 additions and 0 deletions
services

18
services/miniflux.nix Normal file
View file

@ -0,0 +1,18 @@
{ config, pkgs, ... }:
let port = 8002;
in {
services.miniflux = {
enable = true;
adminCredentialsFile = "/etc/nixos/secrets/miniflux";
config = { LISTEN_ADDR = "localhost:${port}"; };
};
services.nginx = {
virtualHosts."news.felschr.com" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://localhost:${port}";
};
};
}