feat(rpi4): add miniflux
This commit is contained in:
parent
7f4fc67b57
commit
9420f787b7
2
rpi4.nix
2
rpi4.nix
|
@ -24,6 +24,7 @@ in with builtins; {
|
||||||
# ./services/photoprism.nix # TODO not working on aarch64 due to tensorflow
|
# ./services/photoprism.nix # TODO not working on aarch64 due to tensorflow
|
||||||
./services/home-assistant.nix
|
./services/home-assistant.nix
|
||||||
./services/owntracks.nix
|
./services/owntracks.nix
|
||||||
|
./services/miniflux.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
@ -65,6 +66,7 @@ in with builtins; {
|
||||||
"*.home.felschr.com"
|
"*.home.felschr.com"
|
||||||
"home.felschr.com"
|
"home.felschr.com"
|
||||||
"media.felschr.com"
|
"media.felschr.com"
|
||||||
|
"news.felschr.com"
|
||||||
"mqtt.felschr.com"
|
"mqtt.felschr.com"
|
||||||
"owntracks.felschr.com"
|
"owntracks.felschr.com"
|
||||||
"etebase.felschr.com"
|
"etebase.felschr.com"
|
||||||
|
|
18
services/miniflux.nix
Normal file
18
services/miniflux.nix
Normal 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}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue