about summary refs log blame commit diff stats
path: root/system/services/miniflux/default.nix
blob: 516a9b217a526047fde909fa7718c43a8dfc27bd (plain) (tree)
1
2
3
4
5
6
7




                                     
                                                                 










                                                                                        
{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;
    };
  };
}