Set up Miniflux

This commit is contained in:
coolneng 2019-11-17 23:25:54 +01:00
parent 9b1d410eeb
commit b1de510e50
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 15 additions and 1 deletions

View File

@ -66,6 +66,9 @@
locations."/gitea/" = { locations."/gitea/" = {
proxyPass = "http://localhost:3000/"; proxyPass = "http://localhost:3000/";
}; };
locations."/miniflux/" = {
proxyPass = "http://localhost:8080/";
};
locations."/wallabag/" = { locations."/wallabag/" = {
root = "/var/lib/wallabag/web"; root = "/var/lib/wallabag/web";
tryFiles = "try_files $uri /app.php$is_args$args"; tryFiles = "try_files $uri /app.php$is_args$args";
@ -105,7 +108,7 @@
services.postgresql = { services.postgresql = {
enable = true; enable = true;
package = pkgs.postgresql_11; package = pkgs.postgresql_11;
ensureDatabases = [ "gitea" "wallabag" ]; ensureDatabases = [ "gitea" "wallabag" "miniflux" ];
ensureUsers = [ ensureUsers = [
{ {
name = "gitea"; name = "gitea";
@ -115,6 +118,10 @@
name = "wallabag"; name = "wallabag";
ensurePermissions = {"DATABASE wallabag" = "ALL PRIVILEGES";}; ensurePermissions = {"DATABASE wallabag" = "ALL PRIVILEGES";};
} }
{
name = "miniflux";
ensurePermissions = {"DATABASE miniflux" = "ALL PRIVILEGES";};
}
]; ];
authentication = lib.mkForce '' authentication = lib.mkForce ''
# Generated file; do not edit! # Generated file; do not edit!
@ -160,4 +167,11 @@
group = "php"; group = "php";
}; };
services.miniflux = {
enable = true;
config = {
BASE_URL = "https://coolneng.duckdns.org";
};
};
} }