Skip to content

Commit c026413

Browse files
author
Chris Wiechmann
committed
Don't fail to start, if the ELASTICSEARCH_HOSTS is not given
1 parent 79874b0 commit c026413

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api-builder-plugin-fn-elasticsearch/config/elasticsearch.default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
pluginConfig: {
55
'@axway-api-builder-ext/api-builder-plugin-fn-elasticsearch': {
66
'elastic': {
7-
nodes: process.env.ELASTICSEARCH_HOSTS.split(','),
7+
nodes: (process.env.ELASTICSEARCH_HOSTS) ? process.env.ELASTICSEARCH_HOSTS.split(',') : "http://your.elasticsearch.host:9200",
88
auth: {
99
// Use an API-Key
1010
apiKey: process.env.ELASTIC_API_KEY,

0 commit comments

Comments
 (0)