From e60c2e1027966cad75be429be902ad5887f6622b Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Thu, 3 Oct 2024 20:51:08 +0200 Subject: [PATCH] make miniflux module (broken) --- hosts/chmura/services/default.nix | 2 +- hosts/chmura/services/freshrss.nix | 22 ---------------------- hosts/chmura/services/miniflux.nix | 24 ++++++++++++++++++++++++ secrets/miniflux-admin-credentials.age | Bin 0 -> 831 bytes secrets/secrets.nix | 1 + 5 files changed, 26 insertions(+), 23 deletions(-) delete mode 100644 hosts/chmura/services/freshrss.nix create mode 100644 hosts/chmura/services/miniflux.nix create mode 100644 secrets/miniflux-admin-credentials.age diff --git a/hosts/chmura/services/default.nix b/hosts/chmura/services/default.nix index d31651e..2878ce4 100644 --- a/hosts/chmura/services/default.nix +++ b/hosts/chmura/services/default.nix @@ -5,10 +5,10 @@ _: { #./discord-autodelete.nix ./firefox-syncserver.nix ./forgejo.nix - #./freshrss.nix #./grafana.nix ./i2pd.nix #./minecraft.nix + ./miniflux.nix ./ntfy-sh.nix ./owncast.nix ./plausible.nix diff --git a/hosts/chmura/services/freshrss.nix b/hosts/chmura/services/freshrss.nix deleted file mode 100644 index 020033c..0000000 --- a/hosts/chmura/services/freshrss.nix +++ /dev/null @@ -1,22 +0,0 @@ -_: { - services.freshrss = { - enable = true; - baseUrl = "http://f.jacekpoz.pl"; - database = { - port = 7425; - tableprefix = "freshrss"; - type = "pgsql"; - }; - defaultUser = "jacek"; - language = "pl"; - #passwordFile = "/run/secrets/freshrss"; - virtualHost = null; - }; - - services.caddy = { - enable = true; - virtualHosts."f.jacekpoz.pl".extraConfig = '' - reverse_proxy * localhost:4834 - ''; - }; -} diff --git a/hosts/chmura/services/miniflux.nix b/hosts/chmura/services/miniflux.nix new file mode 100644 index 0000000..401a487 --- /dev/null +++ b/hosts/chmura/services/miniflux.nix @@ -0,0 +1,24 @@ +{ + config, + ... +}: let + port = "4834"; +in { + age.secrets.miniflux-admin-credentials.file = ../../../secrets/miniflux-admin-credentials.age; + + services.miniflux = { + enable = true; + adminCredentialsFile = config.age.secrets.miniflux-admin-credentials.path; + config = { + PORT = port; + BASE_URL = "https://rss.jacekpoz.pl/"; + }; + }; + + services.caddy = { + enable = true; + virtualHosts."rss.jacekpoz.pl".extraConfig = '' + reverse_proxy * localhost:${port} + ''; + }; +} diff --git a/secrets/miniflux-admin-credentials.age b/secrets/miniflux-admin-credentials.age new file mode 100644 index 0000000000000000000000000000000000000000..bc5d1b311a6d43575ed8527629468e3af074b001 GIT binary patch literal 831 zcmZ9~yRO@0003a-2+@I!4)wx-+|+jBIQGJk?{*U3a&c@+R7&jMcI^1>IJU*oC+Jj= z4id1ibgFbzgv!Ri!h+PHGoq+R-9a4?mpM=HE#EExLy)>Nn z6#Y?Gmx+y}T}sWoePIHEg7*>{=;L{Bh8UXll)l-CNuXS6 zm0SnAGsLXpsIGV>?2-jZrMXhh<7H7dy)oUl4a>%R0j2dN-6Z&+VS#EH)37O|S-C8xnQ zS#sskalNvQm4QaMCsC>_QjiW(sVg|b%?X^X`>{Q7WyW*E2GS$I$J>?aS+#cCc!Keb;GSjGhPH#X%L0X*PK;)eruKG$+`0GJ_xB$Y@87-sME&l;^B+II{{3zJ z(c-;lw=e#^{ndt_yn1u>{Nc-2zr5uBytmK*fA`z+gTICA==D4Q>aVZV8{*N;_P1>K c!;`PStbSIU*B`6mhj0I3|9J7!!#7vif6F%>v;Y7A literal 0 HcmV?d00001 diff --git a/secrets/secrets.nix b/secrets/secrets.nix index 814f59c..1905700 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -20,4 +20,5 @@ in { "plausible-secret-keybase.age".publicKeys = niks ++ chmura ++ del; "plausible-admin-password.age".publicKeys = niks ++ chmura ++ del; "yubikey-u2f-keys.age".publicKeys = niks ++ chmura ++ del; + "miniflux-admin-credentials.age".publicKeys = niks ++ chmura ++ del; }