2017-06-01 07:21:20 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
2017-06-01 08:12:43 +00:00
|
|
|
services.nginx.virtualHosts."wikisearch.krebsco.de" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
locations."/".proxyPass = "http://localhost:6080";
|
|
|
|
};
|
2017-06-01 07:21:20 +00:00
|
|
|
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}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}'';
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|