Use opensearch for code and issue search
This commit is contained in:
parent
12c38aac8b
commit
485ed0fec2
|
@ -6,6 +6,7 @@
|
|||
./forgejo.nix
|
||||
./networking.nix
|
||||
./nginx.nix
|
||||
./opensearch.nix
|
||||
./redis.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -66,6 +66,13 @@
|
|||
ADAPTER = "redis";
|
||||
HOST = "redis+socket:///run/redis-forgejo/redis.sock";
|
||||
};
|
||||
indexer = {
|
||||
ISSUE_INDEXER_TYPE = "elasticsearch";
|
||||
ISSUE_INDEXER_CONN_STR = "http://127.0.0.1:9200";
|
||||
REPO_INDEXER_ENABLED = true;
|
||||
REPO_INDEXER_TYPE = "elasticsearch";
|
||||
REPO_INDEXER_CONN_STR = "http://127.0.0.1:9200";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
12
config/hosts/git/opensearch.nix
Normal file
12
config/hosts/git/opensearch.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
services.opensearch = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
systemd.services.forgejo = {
|
||||
after = [ "opensearch.service" ];
|
||||
requires = [ "opensearch.service" ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue