From 358bc67e6e65252eef83aa4ce911c881670ab4e8 Mon Sep 17 00:00:00 2001 From: notohh Date: Mon, 19 Jun 2023 05:40:05 -0400 Subject: [PATCH] yuki: init miniflux --- hosts/yuki/services/default.nix | 1 + hosts/yuki/services/miniflux.nix | 16 ++++++++++++++++ hosts/yuki/services/traefik.nix | 6 ++++++ 3 files changed, 23 insertions(+) create mode 100644 hosts/yuki/services/miniflux.nix diff --git a/hosts/yuki/services/default.nix b/hosts/yuki/services/default.nix index 7ecb419..1a1402f 100644 --- a/hosts/yuki/services/default.nix +++ b/hosts/yuki/services/default.nix @@ -7,5 +7,6 @@ ./searxng.nix ./homarr.nix ./dashdot.nix + ./miniflux.nix ]; } diff --git a/hosts/yuki/services/miniflux.nix b/hosts/yuki/services/miniflux.nix new file mode 100644 index 0000000..aeee66b --- /dev/null +++ b/hosts/yuki/services/miniflux.nix @@ -0,0 +1,16 @@ +{ + config, + lib, + ... +}: { + networking.firewall.allowedTCPPorts = [8200]; + sops.secrets.miniflux = {}; + services.miniflux = { + enable = true; + config = { + DATABASE_URL = lib.mkForce "host=192.168.1.211 port=5432 user=miniflux password=miniflux dbname=miniflux sslmode=disable"; + LISTEN_ADDR = "localhost:8200"; + }; + adminCredentialsFile = config.sops.secrets.miniflux.path; + }; +} diff --git a/hosts/yuki/services/traefik.nix b/hosts/yuki/services/traefik.nix index eb94718..6ea3c15 100644 --- a/hosts/yuki/services/traefik.nix +++ b/hosts/yuki/services/traefik.nix @@ -35,6 +35,11 @@ _: { entrypoints = ["web"]; service = "dashdot"; }; + miniflux = { + rule = "Host(`news.home.arpa`)"; + entrypoints = ["web"]; + service = "miniflux"; + }; }; services = { kanboard.loadBalancer.servers = [{url = "http://localhost:8080";}]; @@ -42,6 +47,7 @@ _: { homarr.loadBalancer.servers = [{url = "http://localhost:7575";}]; dashdot.loadBalancer.servers = [{url = "http://localhost:4000";}]; searxng.loadBalancer.servers = [{url = "http://localhost:8100";}]; + miniflux.loadBalancer.servers = [{url = "http://localhost:8200";}]; }; }; };