nixos-config/services/miniflux.nix

19 lines
389 B
Nix
Raw Normal View History

2021-12-11 19:40:53 +01:00
{ config, pkgs, ... }:
let port = 8002;
in {
services.miniflux = {
enable = true;
adminCredentialsFile = "/etc/nixos/secrets/miniflux";
config = { LISTEN_ADDR = "localhost:${port}"; };
};
services.nginx = {
virtualHosts."news.felschr.com" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://localhost:${port}";
};
};
}