about summary refs log blame commit diff
path: root/users/tazjin/nixos/modules/miniflux.nix
blob: 72089bfb3d382c33e55bf8cc3a6b99f5b07e0b81 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                        
                                              











                                          
{ 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";
    config.BASE_URL = "https://feeds.tazj.in";
  };

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

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