Loading nixos/modules/services/web-apps/mastodon.nix +13 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,9 @@ let // lib.optionalAttrs cfg.smtp.authenticate { SMTP_LOGIN = cfg.smtp.user; } // lib.optionalAttrs (cfg.elasticsearch.host != null) { ES_HOST = cfg.elasticsearch.host; } // lib.optionalAttrs (cfg.elasticsearch.host != null) { ES_PORT = toString cfg.elasticsearch.port; } // lib.optionalAttrs (cfg.elasticsearch.host != null && cfg.elasticsearch.prefix != null) { ES_PREFIX = cfg.elasticsearch.prefix; } // lib.optionalAttrs (cfg.elasticsearch.host != null) { ES_PRESET = cfg.elasticsearch.preset; } // lib.optionalAttrs (cfg.elasticsearch.user != null) { ES_USER = cfg.elasticsearch.user; } // cfg.extraConfig; Loading Loading @@ -670,6 +673,16 @@ in default = 9200; }; prefix = lib.mkOption { description = '' If provided, adds a prefix to indexes in Elasticsearch. This allows to use the same Elasticsearch cluster between different projects or Mastodon servers. ''; type = lib.types.nullOr lib.types.str; default = null; example = "mastodon"; }; preset = lib.mkOption { description = '' It controls the ElasticSearch indices configuration (number of shards and replica). Loading Loading
nixos/modules/services/web-apps/mastodon.nix +13 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,9 @@ let // lib.optionalAttrs cfg.smtp.authenticate { SMTP_LOGIN = cfg.smtp.user; } // lib.optionalAttrs (cfg.elasticsearch.host != null) { ES_HOST = cfg.elasticsearch.host; } // lib.optionalAttrs (cfg.elasticsearch.host != null) { ES_PORT = toString cfg.elasticsearch.port; } // lib.optionalAttrs (cfg.elasticsearch.host != null && cfg.elasticsearch.prefix != null) { ES_PREFIX = cfg.elasticsearch.prefix; } // lib.optionalAttrs (cfg.elasticsearch.host != null) { ES_PRESET = cfg.elasticsearch.preset; } // lib.optionalAttrs (cfg.elasticsearch.user != null) { ES_USER = cfg.elasticsearch.user; } // cfg.extraConfig; Loading Loading @@ -670,6 +673,16 @@ in default = 9200; }; prefix = lib.mkOption { description = '' If provided, adds a prefix to indexes in Elasticsearch. This allows to use the same Elasticsearch cluster between different projects or Mastodon servers. ''; type = lib.types.nullOr lib.types.str; default = null; example = "mastodon"; }; preset = lib.mkOption { description = '' It controls the ElasticSearch indices configuration (number of shards and replica). Loading