diff --git a/.config/docker_example.yml b/.config/docker_example.yml index 6946954ce5f1..39682e1542cb 100644 --- a/.config/docker_example.yml +++ b/.config/docker_example.yml @@ -102,6 +102,7 @@ redis: # host: meilisearch # port: 7700 # apiKey: '' +# ssl: true # ┌───────────────┐ #───┘ ID generation └─────────────────────────────────────────── diff --git a/.config/example.yml b/.config/example.yml index 5861176677a9..ef8373c4da57 100644 --- a/.config/example.yml +++ b/.config/example.yml @@ -102,6 +102,7 @@ redis: # host: localhost # port: 7700 # apiKey: '' +# ssl: true # ┌───────────────┐ #───┘ ID generation └─────────────────────────────────────────── diff --git a/.devcontainer/devcontainer.yml b/.devcontainer/devcontainer.yml index e1b89c25bd9a..1d761ae75e84 100644 --- a/.devcontainer/devcontainer.yml +++ b/.devcontainer/devcontainer.yml @@ -102,6 +102,7 @@ redis: # host: meilisearch # port: 7700 # apiKey: '' +# ssl: true # ┌───────────────┐ #───┘ ID generation └─────────────────────────────────────────── diff --git a/chart/files/default.yml b/chart/files/default.yml index f50c38d57e8e..342c6091f015 100644 --- a/chart/files/default.yml +++ b/chart/files/default.yml @@ -123,6 +123,7 @@ redis: # host: localhost # port: 7700 # apiKey: '' +# ssl: true # ┌───────────────┐ #───┘ ID generation └─────────────────────────────────────────── diff --git a/packages/backend/src/GlobalModule.ts b/packages/backend/src/GlobalModule.ts index 2f4862285d3e..5fb4e8ef3cf9 100644 --- a/packages/backend/src/GlobalModule.ts +++ b/packages/backend/src/GlobalModule.ts @@ -28,7 +28,7 @@ const $meilisearch: Provider = { useFactory: (config) => { if (config.meilisearch) { return new MeiliSearch({ - host: `http://${config.meilisearch.host}:${config.meilisearch.port}`, + host: `${config.meilisearch.ssl ? 'https' : 'http' }://${config.meilisearch.host}:${config.meilisearch.port}`, apiKey: config.meilisearch.apiKey, }); } else { diff --git a/packages/backend/src/config.ts b/packages/backend/src/config.ts index 7354268a4d4e..b41fb603bb00 100644 --- a/packages/backend/src/config.ts +++ b/packages/backend/src/config.ts @@ -61,6 +61,7 @@ export type Source = { host: string; port: string; apiKey: string; + ssl?: boolean; }; proxy?: string;