summary refs log tree commit diff stats
path: root/system/services/miniflux/default.nix
blob: 516a9b217a526047fde909fa7718c43a8dfc27bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{config, ...}: {
  services.miniflux = {
    enable = true;
    config = {
      LISTEN_ADDR = "127.0.0.1:5892";
    };
    adminCredentialsFile = config.age.secrets.minifluxAdmin.path;
  };

  services.nginx = {
    enable = true;
    virtualHosts."rss.vhack.eu" = {
      locations."/".proxyPass = "http://${config.services.miniflux.config.LISTEN_ADDR}";

      enableACME = true;
      forceSSL = true;
    };
  };
}