summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/deployment/hound/default.nix
blob: 0cfb5cdebde82123df459734e0f73120ab584150 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ config, pkgs, ... }:
{
  services.nginx.virtualHosts."wikisearch.krebsco.de" = {
    forceSSL = true;
    enableACME = true;
    locations."/".proxyPass = "http://localhost:6080";
  };
  services.hound = {
    enable = true;
    listen = "127.0.0.1:6080";
    # package = pkgs.hound.overrideDerivation(oldAttrs: {
    #   patches = [ ./keep-repo.patch ];
    # });
    config = ''{
        "max-concurrent-indexers" : 2,
        "dbpath" : "${config.services.hound.home}/data",
        "repos" : {
          "nixos-users-wiki": {
            "url" : "https://github.com/nixos-users/wiki.wiki.git",
            "url-pattern" : {
              "base-url" : "{url}/{path}"
            }
          }
        }
      }'';
  };

}