From 002cb50ba3bff816beffc0a679217738d0d8fea9 Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 15 Apr 2024 16:35:14 +0100 Subject: laurel: add miniflux --- hosts/laurel/configuration.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/hosts/laurel/configuration.nix b/hosts/laurel/configuration.nix index a40dafd..541f185 100644 --- a/hosts/laurel/configuration.nix +++ b/hosts/laurel/configuration.nix @@ -115,15 +115,32 @@ }; }; + services.miniflux = { + enable = true; + adminCredentialsFile = "/etc/miniflux/admin"; + config = { + FETCH_YOUTUBE_WATCH_TIME = 1; + PORT = 8383; + BASE_URL = "http://rss.laurel"; + }; + }; + services.nginx.virtualHosts."rss.laurel" = { + listen = [{ port = 80; addr = "0.0.0.0"; }]; + locations."/" = { + proxyPass = "http://127.0.0.1:${builtins.toString config.services.miniflux.config.PORT}"; + }; + }; + services.nginx.virtualHosts."oppi.li" = { listen = [{ port = 8282; addr = "0.0.0.0"; }]; - root = "/home/op/site/docs"; + root = "/www/site/docs"; locations."/" = { tryFiles = "$uri $uri/ =404"; index = "index.html"; }; }; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; # This option defines the first version of NixOS you have installed on this particular machine, -- cgit v1.2.3