Compare commits
3 commits
062a3c0a12
...
98408e1970
Author | SHA1 | Date | |
---|---|---|---|
|
98408e1970 | ||
|
313a0b6939 | ||
|
46cb83674b |
4 changed files with 51 additions and 2 deletions
|
@ -22,6 +22,7 @@
|
||||||
./gerd/services/stalwart
|
./gerd/services/stalwart
|
||||||
./gerd/services/wger
|
./gerd/services/wger
|
||||||
./gerd/services/searx.nix
|
./gerd/services/searx.nix
|
||||||
|
./gerd/services/miniflux.nix
|
||||||
|
|
||||||
./gerd/services/element.nix
|
./gerd/services/element.nix
|
||||||
./gerd/services/matrix-synapse.nix
|
./gerd/services/matrix-synapse.nix
|
||||||
|
|
|
@ -19,7 +19,7 @@ index 6f42473..b3746a1 100644
|
||||||
&config,
|
&config,
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pkgLLDAPCli = pkgs.callPackage ./../../../shared/pkgs/lldap-cli.nix {};
|
pkgLLDAPCli = pkgs.callPackage ./../../../../shared/pkgs/lldap-cli.nix {};
|
||||||
in {
|
in {
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgLLDAPCli
|
pkgLLDAPCli
|
||||||
|
|
48
machines/gerd/services/miniflux.nix
Normal file
48
machines/gerd/services/miniflux.nix
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
svc_domain = "miniflux.${config.mine.shared.settings.domain}";
|
||||||
|
port = 6466;
|
||||||
|
in {
|
||||||
|
services.miniflux = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
config = {
|
||||||
|
LISTEN_ADDR = "localhost:${builtins.toString port}";
|
||||||
|
|
||||||
|
# disable admin account, disable local auth
|
||||||
|
CREATE_ADMIN = 0;
|
||||||
|
DISABLE_LOCAL_AUTH = "true";
|
||||||
|
|
||||||
|
# use auth proxy
|
||||||
|
# TODO: This should be configureable
|
||||||
|
AUTH_PROXY_HEADER = "Remote-User";
|
||||||
|
AUTH_PROXY_USER_CREATION = "true";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# nginx
|
||||||
|
services.nginx.virtualHosts."${svc_domain}" = config.mine.shared.lib.authelia.mkProtectedWebsite {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
|
||||||
|
locations."/" = config.mine.shared.lib.authelia.mkProtectedLocation {
|
||||||
|
proxyPass = "http://localhost:${builtins.toString port}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# meta
|
||||||
|
mine.shared.meta.miniflux = {
|
||||||
|
name = "Miniflux";
|
||||||
|
description = "We host our own miniflux, use it to read all your feeds!";
|
||||||
|
url = "https://${svc_domain}";
|
||||||
|
|
||||||
|
package = let
|
||||||
|
pkg = config.services.miniflux.package;
|
||||||
|
in {
|
||||||
|
name = pkg.pname;
|
||||||
|
version = pkg.version;
|
||||||
|
meta = pkg.meta;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
compression = "zstd";
|
compression = "zstd";
|
||||||
|
|
||||||
# default to backup all databadatabases
|
# default to backup all databases
|
||||||
databases = config.services.postgresql.ensureDatabases;
|
databases = config.services.postgresql.ensureDatabases;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue