diff --git a/hosts/yuki/services/default.nix b/hosts/yuki/services/default.nix index 4e0c566..2d996aa 100644 --- a/hosts/yuki/services/default.nix +++ b/hosts/yuki/services/default.nix @@ -8,5 +8,6 @@ ./wallos.nix ./homepage.nix ./searxng.nix + ./miniflux.nix ]; } diff --git a/hosts/yuki/services/miniflux.nix b/hosts/yuki/services/miniflux.nix new file mode 100644 index 0000000..8fb2977 --- /dev/null +++ b/hosts/yuki/services/miniflux.nix @@ -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"; + }; + }; +} diff --git a/hosts/yuki/services/traefik.nix b/hosts/yuki/services/traefik.nix index b4b5044..b194471 100644 --- a/hosts/yuki/services/traefik.nix +++ b/hosts/yuki/services/traefik.nix @@ -45,6 +45,11 @@ _: { entrypoints = ["web"]; service = "hass"; }; + miniflux = { + rule = "Host(`news.internal.flake.sh`)"; + entrypoints = ["web"]; + service = "miniflux"; + }; }; services = { stash.loadBalancer.servers = [{url = "http://localhost:9999";}]; @@ -54,6 +59,7 @@ _: { wallos.loadBalancer.servers = [{url = "http://localhost:8282";}]; searxng.loadBalancer.servers = [{url = "http://localhost:8100";}]; hass.loadBalancer.servers = [{url = "http://localhost:8123";}]; + miniflux.loadBalancer.servers = [{url = "http://localhost:9000";}]; }; }; };