1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/systems/makanek/tt-rss.nix

38 lines
769 B
Nix
Raw Normal View History

{
pkgs,
lib,
2022-12-03 08:25:47 +01:00
config,
...
}: let
2022-11-14 22:36:41 +01:00
domain = "feed.kmein.de";
2023-01-29 17:46:31 +01:00
port = 8181;
2022-11-14 22:36:41 +01:00
in {
2023-01-29 17:46:31 +01:00
services.miniflux = {
2022-11-14 22:36:41 +01:00
enable = true;
2023-01-29 17:46:31 +01:00
adminCredentialsFile = pkgs.writeText "miniflux" ''
ADMIN_USERNAME='kfm'
ADMIN_PASSWORD='${lib.strings.fileContents <secrets/miniflux/password>}'
2023-01-29 17:46:31 +01:00
'';
config = {
FETCH_YOUTUBE_WATCH_TIME = "1";
POLLING_FREQUENCY = "20";
PORT = toString port;
BASE_URL = "https://feed.kmein.de";
# POCKET_CONSUMER_KEY = ...
2022-11-16 11:21:22 +01:00
};
2022-11-14 22:36:41 +01:00
};
2022-12-03 08:25:47 +01:00
services.postgresqlBackup = {
enable = true;
2023-01-29 17:46:31 +01:00
databases = ["miniflux"];
2022-12-03 08:25:47 +01:00
};
2022-11-14 22:36:41 +01:00
services.nginx.virtualHosts.${domain} = {
enableACME = true;
forceSSL = true;
2023-01-29 17:46:31 +01:00
locations."/" = {
proxyPass = "http://127.0.0.1:${toString port}";
};
2022-11-14 22:36:41 +01:00
};
}