about summary refs log tree commit diff
path: root/users/tazjin/nixos/modules/miniflux.nix
blob: 52334ef503b3c5ec893eebe81fb00b32e570000e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ config, depot, lib, pkgs, ... }:

{
  age.secrets.miniflux.file = depot.users.tazjin.secrets."miniflux.age";

  services.miniflux = {
    enable = true;
    adminCredentialsFile = "/run/agenix/miniflux";
    config.LISTEN_ADDR = "127.0.0.1:6359";
  };

  services.nginx.virtualHosts."feeds" = {
    serverName = "feeds.tazj.in";
    enableACME = true;
    forceSSL = true;

    locations."/" = {
      proxyPass = "http://127.0.0.1:6359";
    };
  };
}