From b7d39def1141bca9fdc81e1f80067a010150142e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Mon, 19 Jan 2026 11:50:28 +0100 Subject: [PATCH] nixos/meilisearch: add instructions for generating masterKeyFile --- nixos/modules/services/search/meilisearch.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/services/search/meilisearch.nix b/nixos/modules/services/search/meilisearch.nix index 17b6931fcc87..80aca66daf17 100644 --- a/nixos/modules/services/search/meilisearch.nix +++ b/nixos/modules/services/search/meilisearch.nix @@ -121,6 +121,9 @@ in Path to file which contains the master key. By doing so, all routes will be protected and will require a key to be accessed. If no master key is provided, all routes can be accessed without requiring any key. + + You can generate a master key by running `openssl rand -base64 36`. + Alternatively, you can start Meilisearch without a master key and use the pre-generated key from the service's logs that can be obtained by `journalctl -u meilisearch | grep -- --master-key`. ''; default = null; type = lib.types.nullOr lib.types.path;