mastodon: add elasticsearch
This commit is contained in:
parent
224ddc2631
commit
bf2933f574
|
@ -14,8 +14,14 @@
|
||||||
};
|
};
|
||||||
c3d2.hq.statistics.enable = true;
|
c3d2.hq.statistics.enable = true;
|
||||||
system.stateVersion = "22.11";
|
system.stateVersion = "22.11";
|
||||||
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||||
|
lib.getName pkg == "elasticsearch";
|
||||||
|
|
||||||
services.postgresql.enable = true;
|
services.postgresql.enable = true;
|
||||||
|
services.elasticsearch = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.elasticsearch7;
|
||||||
|
};
|
||||||
services.mastodon = {
|
services.mastodon = {
|
||||||
enable = true;
|
enable = true;
|
||||||
localDomain = "c3d2.social";
|
localDomain = "c3d2.social";
|
||||||
|
@ -28,6 +34,7 @@
|
||||||
# echo "${secrets.email.smtp-password}" > $out
|
# echo "${secrets.email.smtp-password}" > $out
|
||||||
# ''}";
|
# ''}";
|
||||||
|
|
||||||
|
elasticsearch.host = "127.0.0.1";
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
ALTERNATE_DOMAINS = lib.concatStringsSep "," [
|
ALTERNATE_DOMAINS = lib.concatStringsSep "," [
|
||||||
|
|
Loading…
Reference in New Issue