summaryrefslogtreecommitdiff
path: root/microvms/news/miniflux.nix
blob: 94d409bb069b639ba647eff90b25e99dffd8d969 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ config, ... }:
let
  listenport = 8080;
in
{
  sops.secrets."miniflux-admin" = { };

  networking.firewall.interfaces.oxaproxy.allowedTCPPorts = [ listenport ];
  services.miniflux = {
    enable = true;
    config = {
      LISTEN_ADDR = "10.34.45.102:${toString listenport}";
      POLLING_FREQUENCY = "37";
      CREATE_ADMIN = "1";
    };
    adminCredentialsFile = config.sops.secrets."miniflux-admin".path;
  };
}