Add miniflux service to alexandria

This commit is contained in:
William 2023-07-11 18:31:31 -03:00
parent e6e619227f
commit 3dbc0352b6
5 changed files with 41 additions and 7 deletions

View file

@ -0,0 +1,28 @@
{ inputs, config, pkgs, lib, ... }:
{
services = {
miniflux = {
enable = true;
config = {
PORT = "${config.ports.miniflux}";
FETCH_YOUTUBE_WATCH_TIME = true;
BASE_URL = "https://miniflux.baduhai.me";
};
adminCredentialsFile = config.age.secrets.miniflux-pass.path;
};
nginx.virtualHosts."miniflux.baduhai.me" = {
useACMEHost = "baduhai.me";
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://127.0.0.1:${config.ports.miniflux}";
};
};
age.secrets.miniflux-pass = {
file = ../../../secrets/miniflux-pass.age;
owner = "dbUser";
group = "hosted";
};
}

View file

@ -6,12 +6,5 @@
ports = [ "${config.ports.pairdrop}:3000" ];
extraOptions = [ "--label=io.containers.autoupdate=registry" ];
};
services.nginx.virtualHosts."pairdrop.baduhai.me" = {
useACMEHost = "baduhai.me";
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://127.0.0.1:${config.ports.pairdrop}";
};
}

View file

@ -23,6 +23,7 @@ in {
qbittorrent = mkStringOption "8008";
actual = mkStringOption "8009";
pairdrop = mkStringOption "8010";
miniflux = mkStringOption "8011";
jellyfin = mkStringOption "8096";
sonarr = mkStringOption "8989";
jackett = mkStringOption "9117";