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

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

      enableACME = true;
      forceSSL = true;
      serverAliases = [
        "rss.vhack.eu"
      ];
    };
  };
}