diff --git a/rpi4.nix b/rpi4.nix index 346c4bc..fc0a40b 100644 --- a/rpi4.nix +++ b/rpi4.nix @@ -24,6 +24,7 @@ in with builtins; { # ./services/photoprism.nix # TODO not working on aarch64 due to tensorflow ./services/home-assistant.nix ./services/owntracks.nix + ./services/miniflux.nix ]; nixpkgs.config.allowUnfree = true; @@ -65,6 +66,7 @@ in with builtins; { "*.home.felschr.com" "home.felschr.com" "media.felschr.com" + "news.felschr.com" "mqtt.felschr.com" "owntracks.felschr.com" "etebase.felschr.com" diff --git a/services/miniflux.nix b/services/miniflux.nix new file mode 100644 index 0000000..91f8d98 --- /dev/null +++ b/services/miniflux.nix @@ -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}"; + }; + }; +}