A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
docs: update meilisearch key generation instruction (#1651)
Kyle Wilson91a9d3c1aee0
diff --git a/docker/.env.sample b/docker/.env.sampleindex 931d0e73..0ee7c4f2 100644--- a/docker/.env.sample+++ b/docker/.env.sample@@ -1,6 +1,6 @@# See https://docs.karakeep.app/configuration for more informationDATA_DIR=/dataMEILI_ADDR=http://127.0.0.1:7700-MEILI_MASTER_KEY=[generate with <openssl rand -base64 36>]+MEILI_MASTER_KEY=[generate with <openssl rand -base64 36 | tr -dc 'A-Za-z0-9'>]NEXTAUTH_URL=http://localhost:3000NEXTAUTH_SECRET=[generate with <openssl rand -base64 36>]\ No newline at end of filediff --git a/docs/docs/03-configuration.md b/docs/docs/03-configuration.mdindex ac8883d4..65dc5741 100644--- a/docs/docs/03-configuration.md+++ b/docs/docs/03-configuration.md@@ -9,10 +9,11 @@ The app is mainly configured by environment variables. All the used environment| NEXTAUTH_URL | Yes | Not set | Should point to the address of your server. The app will function without it, but will redirect you to wrong addresses on signout for example. || NEXTAUTH_SECRET | Yes | Not set | Random string used to sign the JWT tokens. Generate one with `openssl rand -base64 36`. || MEILI_ADDR | No | Not set | The address of meilisearch. If not set, Search will be disabled. E.g. (`http://meilisearch:7700`) |-| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36` |+| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36 \| tr -dc 'A-Za-z0-9'` || MAX_ASSET_SIZE_MB | No | 50 | Sets the maximum allowed asset size (in MB) to be uploaded || DISABLE_NEW_RELEASE_CHECK | No | false | If set to true, latest release check will be disabled in the admin panel. |+## Authentication / SignupBy default, Karakeep uses the database to store users, but it is possible to also use OAuth.diff --git a/docs/versioned_docs/version-v0.15.0/03-configuration.md b/docs/versioned_docs/version-v0.15.0/03-configuration.mdindex 277d182e..5093d26e 100644--- a/docs/versioned_docs/version-v0.15.0/03-configuration.md+++ b/docs/versioned_docs/version-v0.15.0/03-configuration.md@@ -12,7 +12,7 @@ The app is mainly configured by environment variables. All the used environment| REDIS_DB_IDX | No | Not set | The db idx to use with redis. It defaults to 0 (in the client) so you don't usually need to set it unless you explicitly want another db. || REDIS_PASSWORD | No | Not set | The password used for redis authentication. It's not required if your redis instance doesn't require AUTH. || MEILI_ADDR | No | Not set | The address of meilisearch. If not set, Search will be disabled. E.g. (`http://meilisearch:7700`) |-| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36` |+| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36 \| tr -dc 'A-Za-z0-9'` || DISABLE_SIGNUPS | No | false | If enabled, no new signups will be allowed and the signup button will be disabled in the UI || MAX_ASSET_SIZE_MB | No | 4 | Sets the maximum allowed asset size (in MB) to be uploaded || DISABLE_NEW_RELEASE_CHECK | No | false | If set to true, latest release check will be disabled in the admin panel. |diff --git a/docs/versioned_docs/version-v0.16.0/03-configuration.md b/docs/versioned_docs/version-v0.16.0/03-configuration.mdindex ad94ff9b..cc07ba2b 100644--- a/docs/versioned_docs/version-v0.16.0/03-configuration.md+++ b/docs/versioned_docs/version-v0.16.0/03-configuration.md@@ -8,7 +8,7 @@ The app is mainly configured by environment variables. All the used environment| NEXTAUTH_URL | Yes | Not set | Should point to the address of your server. The app will function without it, but will redirect you to wrong addresses on signout for example. || NEXTAUTH_SECRET | Yes | Not set | Random string used to sign the JWT tokens. Generate one with `openssl rand -base64 36`. || MEILI_ADDR | No | Not set | The address of meilisearch. If not set, Search will be disabled. E.g. (`http://meilisearch:7700`) |-| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36` |+| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36 \| tr -dc 'A-Za-z0-9'` || DISABLE_SIGNUPS | No | false | If enabled, no new signups will be allowed and the signup button will be disabled in the UI || MAX_ASSET_SIZE_MB | No | 4 | Sets the maximum allowed asset size (in MB) to be uploaded || DISABLE_NEW_RELEASE_CHECK | No | false | If set to true, latest release check will be disabled in the admin panel. |diff --git a/docs/versioned_docs/version-v0.17.0/03-configuration.md b/docs/versioned_docs/version-v0.17.0/03-configuration.mdindex f026977e..62d3a175 100644--- a/docs/versioned_docs/version-v0.17.0/03-configuration.md+++ b/docs/versioned_docs/version-v0.17.0/03-configuration.md@@ -8,7 +8,7 @@ The app is mainly configured by environment variables. All the used environment| NEXTAUTH_URL | Yes | Not set | Should point to the address of your server. The app will function without it, but will redirect you to wrong addresses on signout for example. || NEXTAUTH_SECRET | Yes | Not set | Random string used to sign the JWT tokens. Generate one with `openssl rand -base64 36`. || MEILI_ADDR | No | Not set | The address of meilisearch. If not set, Search will be disabled. E.g. (`http://meilisearch:7700`) |-| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36` |+| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36 \| tr -dc 'A-Za-z0-9'` || MAX_ASSET_SIZE_MB | No | 4 | Sets the maximum allowed asset size (in MB) to be uploaded || DISABLE_NEW_RELEASE_CHECK | No | false | If set to true, latest release check will be disabled in the admin panel. |diff --git a/docs/versioned_docs/version-v0.18.0/03-configuration.md b/docs/versioned_docs/version-v0.18.0/03-configuration.mdindex 9abd6fb2..4a74504f 100644--- a/docs/versioned_docs/version-v0.18.0/03-configuration.md+++ b/docs/versioned_docs/version-v0.18.0/03-configuration.md@@ -8,7 +8,7 @@ The app is mainly configured by environment variables. All the used environment| NEXTAUTH_URL | Yes | Not set | Should point to the address of your server. The app will function without it, but will redirect you to wrong addresses on signout for example. || NEXTAUTH_SECRET | Yes | Not set | Random string used to sign the JWT tokens. Generate one with `openssl rand -base64 36`. || MEILI_ADDR | No | Not set | The address of meilisearch. If not set, Search will be disabled. E.g. (`http://meilisearch:7700`) |-| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36` |+| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36 \| tr -dc 'A-Za-z0-9'` || MAX_ASSET_SIZE_MB | No | 4 | Sets the maximum allowed asset size (in MB) to be uploaded || DISABLE_NEW_RELEASE_CHECK | No | false | If set to true, latest release check will be disabled in the admin panel. |diff --git a/docs/versioned_docs/version-v0.19.0/03-configuration.md b/docs/versioned_docs/version-v0.19.0/03-configuration.mdindex c8fb4cc2..6f3423b5 100644--- a/docs/versioned_docs/version-v0.19.0/03-configuration.md+++ b/docs/versioned_docs/version-v0.19.0/03-configuration.md@@ -8,7 +8,7 @@ The app is mainly configured by environment variables. All the used environment| NEXTAUTH_URL | Yes | Not set | Should point to the address of your server. The app will function without it, but will redirect you to wrong addresses on signout for example. || NEXTAUTH_SECRET | Yes | Not set | Random string used to sign the JWT tokens. Generate one with `openssl rand -base64 36`. || MEILI_ADDR | No | Not set | The address of meilisearch. If not set, Search will be disabled. E.g. (`http://meilisearch:7700`) |-| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36` |+| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36 \| tr -dc 'A-Za-z0-9'` || MAX_ASSET_SIZE_MB | No | 4 | Sets the maximum allowed asset size (in MB) to be uploaded || DISABLE_NEW_RELEASE_CHECK | No | false | If set to true, latest release check will be disabled in the admin panel. |diff --git a/docs/versioned_docs/version-v0.20.0/03-configuration.md b/docs/versioned_docs/version-v0.20.0/03-configuration.mdindex 47c3227f..8a598bac 100644--- a/docs/versioned_docs/version-v0.20.0/03-configuration.md+++ b/docs/versioned_docs/version-v0.20.0/03-configuration.md@@ -8,7 +8,7 @@ The app is mainly configured by environment variables. All the used environment| NEXTAUTH_URL | Yes | Not set | Should point to the address of your server. The app will function without it, but will redirect you to wrong addresses on signout for example. || NEXTAUTH_SECRET | Yes | Not set | Random string used to sign the JWT tokens. Generate one with `openssl rand -base64 36`. || MEILI_ADDR | No | Not set | The address of meilisearch. If not set, Search will be disabled. E.g. (`http://meilisearch:7700`) |-| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36` |+| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36 \| tr -dc 'A-Za-z0-9'` || MAX_ASSET_SIZE_MB | No | 4 | Sets the maximum allowed asset size (in MB) to be uploaded || DISABLE_NEW_RELEASE_CHECK | No | false | If set to true, latest release check will be disabled in the admin panel. |diff --git a/docs/versioned_docs/version-v0.21.0/03-configuration.md b/docs/versioned_docs/version-v0.21.0/03-configuration.mdindex 82438dbf..04d5d92a 100644--- a/docs/versioned_docs/version-v0.21.0/03-configuration.md+++ b/docs/versioned_docs/version-v0.21.0/03-configuration.md@@ -8,7 +8,7 @@ The app is mainly configured by environment variables. All the used environment| NEXTAUTH_URL | Yes | Not set | Should point to the address of your server. The app will function without it, but will redirect you to wrong addresses on signout for example. || NEXTAUTH_SECRET | Yes | Not set | Random string used to sign the JWT tokens. Generate one with `openssl rand -base64 36`. || MEILI_ADDR | No | Not set | The address of meilisearch. If not set, Search will be disabled. E.g. (`http://meilisearch:7700`) |-| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36` |+| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36 \| tr -dc 'A-Za-z0-9'` || MAX_ASSET_SIZE_MB | No | 4 | Sets the maximum allowed asset size (in MB) to be uploaded || DISABLE_NEW_RELEASE_CHECK | No | false | If set to true, latest release check will be disabled in the admin panel. |diff --git a/docs/versioned_docs/version-v0.22.0/03-configuration.md b/docs/versioned_docs/version-v0.22.0/03-configuration.mdindex 59496409..e5682e24 100644--- a/docs/versioned_docs/version-v0.22.0/03-configuration.md+++ b/docs/versioned_docs/version-v0.22.0/03-configuration.md@@ -8,7 +8,7 @@ The app is mainly configured by environment variables. All the used environment| NEXTAUTH_URL | Yes | Not set | Should point to the address of your server. The app will function without it, but will redirect you to wrong addresses on signout for example. || NEXTAUTH_SECRET | Yes | Not set | Random string used to sign the JWT tokens. Generate one with `openssl rand -base64 36`. || MEILI_ADDR | No | Not set | The address of meilisearch. If not set, Search will be disabled. E.g. (`http://meilisearch:7700`) |-| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36` |+| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36 \| tr -dc 'A-Za-z0-9'` || MAX_ASSET_SIZE_MB | No | 50 | Sets the maximum allowed asset size (in MB) to be uploaded || DISABLE_NEW_RELEASE_CHECK | No | false | If set to true, latest release check will be disabled in the admin panel. |diff --git a/docs/versioned_docs/version-v0.23.0/03-configuration.md b/docs/versioned_docs/version-v0.23.0/03-configuration.mdindex 6e11774e..a0c2db45 100644--- a/docs/versioned_docs/version-v0.23.0/03-configuration.md+++ b/docs/versioned_docs/version-v0.23.0/03-configuration.md@@ -8,7 +8,7 @@ The app is mainly configured by environment variables. All the used environment| NEXTAUTH_URL | Yes | Not set | Should point to the address of your server. The app will function without it, but will redirect you to wrong addresses on signout for example. || NEXTAUTH_SECRET | Yes | Not set | Random string used to sign the JWT tokens. Generate one with `openssl rand -base64 36`. || MEILI_ADDR | No | Not set | The address of meilisearch. If not set, Search will be disabled. E.g. (`http://meilisearch:7700`) |-| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36` |+| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36 \| tr -dc 'A-Za-z0-9'` || MAX_ASSET_SIZE_MB | No | 50 | Sets the maximum allowed asset size (in MB) to be uploaded || DISABLE_NEW_RELEASE_CHECK | No | false | If set to true, latest release check will be disabled in the admin panel. |diff --git a/docs/versioned_docs/version-v0.23.1/03-configuration.md b/docs/versioned_docs/version-v0.23.1/03-configuration.mdindex 51ee23a5..5224351a 100644--- a/docs/versioned_docs/version-v0.23.1/03-configuration.md+++ b/docs/versioned_docs/version-v0.23.1/03-configuration.md@@ -9,7 +9,7 @@ The app is mainly configured by environment variables. All the used environment| NEXTAUTH_URL | Yes | Not set | Should point to the address of your server. The app will function without it, but will redirect you to wrong addresses on signout for example. || NEXTAUTH_SECRET | Yes | Not set | Random string used to sign the JWT tokens. Generate one with `openssl rand -base64 36`. || MEILI_ADDR | No | Not set | The address of meilisearch. If not set, Search will be disabled. E.g. (`http://meilisearch:7700`) |-| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36` |+| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36 \| tr -dc 'A-Za-z0-9'` || MAX_ASSET_SIZE_MB | No | 50 | Sets the maximum allowed asset size (in MB) to be uploaded || DISABLE_NEW_RELEASE_CHECK | No | false | If set to true, latest release check will be disabled in the admin panel. |diff --git a/docs/versioned_docs/version-v0.24.0/03-configuration.md b/docs/versioned_docs/version-v0.24.0/03-configuration.mdindex c6fa024e..5ad43c79 100644--- a/docs/versioned_docs/version-v0.24.0/03-configuration.md+++ b/docs/versioned_docs/version-v0.24.0/03-configuration.md@@ -9,7 +9,7 @@ The app is mainly configured by environment variables. All the used environment| NEXTAUTH_URL | Yes | Not set | Should point to the address of your server. The app will function without it, but will redirect you to wrong addresses on signout for example. || NEXTAUTH_SECRET | Yes | Not set | Random string used to sign the JWT tokens. Generate one with `openssl rand -base64 36`. || MEILI_ADDR | No | Not set | The address of meilisearch. If not set, Search will be disabled. E.g. (`http://meilisearch:7700`) |-| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36` |+| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36 \| tr -dc 'A-Za-z0-9'` || MAX_ASSET_SIZE_MB | No | 50 | Sets the maximum allowed asset size (in MB) to be uploaded || DISABLE_NEW_RELEASE_CHECK | No | false | If set to true, latest release check will be disabled in the admin panel. |diff --git a/docs/versioned_docs/version-v0.25.0/03-configuration.md b/docs/versioned_docs/version-v0.25.0/03-configuration.mdindex ac8883d4..d4a94c98 100644--- a/docs/versioned_docs/version-v0.25.0/03-configuration.md+++ b/docs/versioned_docs/version-v0.25.0/03-configuration.md@@ -9,7 +9,7 @@ The app is mainly configured by environment variables. All the used environment| NEXTAUTH_URL | Yes | Not set | Should point to the address of your server. The app will function without it, but will redirect you to wrong addresses on signout for example. || NEXTAUTH_SECRET | Yes | Not set | Random string used to sign the JWT tokens. Generate one with `openssl rand -base64 36`. || MEILI_ADDR | No | Not set | The address of meilisearch. If not set, Search will be disabled. E.g. (`http://meilisearch:7700`) |-| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36` |+| MEILI_MASTER_KEY | Only in Prod and if search is enabled | Not set | The master key configured for meilisearch. Not needed in development environment. Generate one with `openssl rand -base64 36 \| tr -dc 'A-Za-z0-9'` || MAX_ASSET_SIZE_MB | No | 50 | Sets the maximum allowed asset size (in MB) to be uploaded || DISABLE_NEW_RELEASE_CHECK | No | false | If set to true, latest release check will be disabled in the admin panel. |