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