mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-13 14:18:12 +09:00
Add ssl to elasticsearch config settings (#5527)
This commit is contained in:
parent
f180f02dd1
commit
97b6af62fe
@ -29,6 +29,7 @@ export type Source = {
|
|||||||
port: number;
|
port: number;
|
||||||
pass: string;
|
pass: string;
|
||||||
index?: string;
|
index?: string;
|
||||||
|
ssl?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
autoAdmin?: boolean;
|
autoAdmin?: boolean;
|
||||||
|
@ -32,7 +32,7 @@ const index = {
|
|||||||
|
|
||||||
// Init ElasticSearch connection
|
// Init ElasticSearch connection
|
||||||
const client = config.elasticsearch ? new elasticsearch.Client({
|
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
|
pingTimeout: 30000
|
||||||
}) : null;
|
}) : null;
|
||||||
|
|
||||||
|
0
src/remote/activitypub/kernel/move/index.ts
Normal file
0
src/remote/activitypub/kernel/move/index.ts
Normal file
Loading…
Reference in New Issue
Block a user