niksos/hosts/chmura/services/miniflux.nix

24 lines
568 B
Nix

{
config,
...
}: let
port = "4834";
in {
age.secrets.miniflux-admin-credentials.file = ../../../secrets/miniflux-admin-credentials.age;
services.miniflux = {
enable = true;
adminCredentialsFile = config.age.secrets.miniflux-admin-credentials.path;
config = {
PORT = port;
BASE_URL = "https://rss.jacekpoz.pl/";
};
};
services.caddy = {
enable = true;
virtualHosts."rss.jacekpoz.pl".extraConfig = ''
reverse_proxy * localhost:${port}
'';
};
}