mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
Add ssl to elasticsearch config settings (#5527)
This commit is contained in:
parent
c4deca5956
commit
f1a5b1ebf7
3 changed files with 2 additions and 1 deletions
|
@ -29,6 +29,7 @@ export type Source = {
|
|||
port: number;
|
||||
pass: string;
|
||||
index?: string;
|
||||
ssl?: boolean;
|
||||
};
|
||||
|
||||
autoAdmin?: boolean;
|
||||
|
|
|
@ -32,7 +32,7 @@ const index = {
|
|||
|
||||
// Init ElasticSearch connection
|
||||
const client = config.elasticsearch ? new elasticsearch.Client({
|
||||
node: `http://${config.elasticsearch.host}:${config.elasticsearch.port}`,
|
||||
node: `${config.elasticsearch.ssl ? 'https://' : 'http://'}${config.elasticsearch.host}:${config.elasticsearch.port}`,
|
||||
pingTimeout: 30000
|
||||
}) : null;
|
||||
|
||||
|
|
0
src/remote/activitypub/kernel/move/index.ts
Normal file
0
src/remote/activitypub/kernel/move/index.ts
Normal file
Loading…
Reference in a new issue