nixos-config/services/miniflux.nix

21 lines
466 B
Nix
Raw Normal View History

2021-12-11 19:40:53 +01:00
{ config, pkgs, ... }:
let port = 8002;
in {
age.secrets.miniflux.file = ../secrets/miniflux.age;
2021-12-11 19:40:53 +01:00
services.miniflux = {
enable = true;
2022-05-04 03:02:47 +02:00
adminCredentialsFile = config.age.secrets.miniflux.path;
config = { LISTEN_ADDR = "localhost:${toString port}"; };
2021-12-11 19:40:53 +01:00
};
services.nginx = {
virtualHosts."news.felschr.com" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://localhost:${toString port}";
2021-12-11 19:40:53 +01:00
};
};
}