add miniflux module
This commit is contained in:
parent
39ec1189f7
commit
25dad86874
3 changed files with 47 additions and 0 deletions
|
|
@ -11,6 +11,7 @@
|
||||||
../../../modules/login-display.nix
|
../../../modules/login-display.nix
|
||||||
../../../modules/samba.nix
|
../../../modules/samba.nix
|
||||||
../../../modules/media-server.nix
|
../../../modules/media-server.nix
|
||||||
|
../../../modules/miniflux.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# GRUB bootloader with ZFS support
|
# GRUB bootloader with ZFS support
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,18 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Miniflux RSS reader
|
||||||
|
rss = {
|
||||||
|
rule = "Host(`rss.yanlincs.com`)";
|
||||||
|
service = "rss";
|
||||||
|
tls = {
|
||||||
|
certResolver = "cloudflare";
|
||||||
|
domains = [{
|
||||||
|
main = "*.yanlincs.com";
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
@ -136,6 +148,15 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Miniflux RSS backend
|
||||||
|
rss = {
|
||||||
|
loadBalancer = {
|
||||||
|
servers = [{
|
||||||
|
url = "http://lan.hs.yanlincs.com:8070";
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
25
modules/miniflux.nix
Normal file
25
modules/miniflux.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.services.miniflux-custom;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.services.miniflux-custom = {
|
||||||
|
port = lib.mkOption {
|
||||||
|
type = lib.types.port;
|
||||||
|
default = 8070;
|
||||||
|
description = "Port for Miniflux to listen on";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
services.miniflux = {
|
||||||
|
enable = true;
|
||||||
|
adminCredentialsFile = "/etc/miniflux-admin-credentials";
|
||||||
|
config = {
|
||||||
|
LISTEN_ADDR = "0.0.0.0:${toString cfg.port}";
|
||||||
|
BASE_URL = "https://rss.yanlincs.com";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue