From b1de510e50604ae006b023e1909cba781a16a1f5 Mon Sep 17 00:00:00 2001 From: coolneng Date: Sun, 17 Nov 2019 23:25:54 +0100 Subject: [PATCH] Set up Miniflux --- modules/webstack.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/modules/webstack.nix b/modules/webstack.nix index 5d0bae8..7ee4b0c 100644 --- a/modules/webstack.nix +++ b/modules/webstack.nix @@ -66,6 +66,9 @@ locations."/gitea/" = { proxyPass = "http://localhost:3000/"; }; + locations."/miniflux/" = { + proxyPass = "http://localhost:8080/"; + }; locations."/wallabag/" = { root = "/var/lib/wallabag/web"; tryFiles = "try_files $uri /app.php$is_args$args"; @@ -105,7 +108,7 @@ services.postgresql = { enable = true; package = pkgs.postgresql_11; - ensureDatabases = [ "gitea" "wallabag" ]; + ensureDatabases = [ "gitea" "wallabag" "miniflux" ]; ensureUsers = [ { name = "gitea"; @@ -115,6 +118,10 @@ name = "wallabag"; ensurePermissions = {"DATABASE wallabag" = "ALL PRIVILEGES";}; } + { + name = "miniflux"; + ensurePermissions = {"DATABASE miniflux" = "ALL PRIVILEGES";}; + } ]; authentication = lib.mkForce '' # Generated file; do not edit! @@ -160,4 +167,11 @@ group = "php"; }; + services.miniflux = { + enable = true; + config = { + BASE_URL = "https://coolneng.duckdns.org"; + }; + }; + }