Set up Miniflux reverse proxy

This commit is contained in:
coolneng 2019-11-17 23:50:48 +01:00
parent b1de510e50
commit 7875d2b5ae
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 12 additions and 9 deletions

View File

@ -9,6 +9,7 @@
libressl
gnumake
php73Packages.composer
miniflux
];
services.nginx = {
@ -67,7 +68,7 @@
proxyPass = "http://localhost:3000/";
};
locations."/miniflux/" = {
proxyPass = "http://localhost:8080/";
proxyPass = "http://localhost:8080/miniflux/";
};
locations."/wallabag/" = {
root = "/var/lib/wallabag/web";
@ -108,7 +109,7 @@
services.postgresql = {
enable = true;
package = pkgs.postgresql_11;
ensureDatabases = [ "gitea" "wallabag" "miniflux" ];
ensureDatabases = [ "gitea" "wallabag" ];
ensureUsers = [
{
name = "gitea";
@ -118,10 +119,6 @@
name = "wallabag";
ensurePermissions = {"DATABASE wallabag" = "ALL PRIVILEGES";};
}
{
name = "miniflux";
ensurePermissions = {"DATABASE miniflux" = "ALL PRIVILEGES";};
}
];
authentication = lib.mkForce ''
# Generated file; do not edit!
@ -162,15 +159,21 @@
};
};
# Create php user
# Create php and group user
users.users.php = {
group = "php";
extraGroups = [ "php" ];
};
users.groups.php = {
members = [ "php" ];
};
# Miniflux configuration
services.miniflux = {
enable = true;
adminCredentialsFile = "/var/keys/miniflux/admin";
config = {
BASE_URL = "https://coolneng.duckdns.org";
BASE_URL = "https://coolneng.duckdns.org/miniflux/";
};
};