Files
macports-ports/databases/elasticsearch/files/patch-elasticsearch-yml.diff

54 lines
1.6 KiB
Diff

--- ./config/elasticsearch.yml 2021-12-12 22:21:21.000000000 -0500
+++ ./config/elasticsearch.yml 2021-12-12 22:24:52.000000000 -0500
@@ -14,7 +14,7 @@
#
# Use a descriptive name for your cluster:
#
-#cluster.name: my-application
+cluster.name: elasticsearch
#
# ------------------------------------ Node ------------------------------------
#
@@ -30,17 +30,21 @@
#
# Path to directory where to store the data (separate multiple locations by comma):
#
-#path.data: /path/to/data
+path.data: @PREFIX@/var/elasticsearch
#
# Path to log files:
#
-#path.logs: /path/to/logs
+path.logs: @PREFIX@/var/log/elasticsearch
+#
+# Path to directory where to snapshot and restore the data (separate multiple locations by comma):
+#
+path.repo: @PREFIX@/var/elasticsearch/backup
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
-#bootstrap.memory_lock: true
+bootstrap.memory_lock: true
#
# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
@@ -54,6 +58,8 @@
# address here to expose this node on the network:
#
#network.host: 192.168.0.1
+# Bind to localhost unless explicitly changed
+network.host: 127.0.0.1
#
# By default Elasticsearch listens for HTTP traffic on the first free port it
# finds starting at 9200. Set a specific HTTP port here:
@@ -94,3 +100,7 @@
# Refer to the following documentation for instructions.
#
# https://www.elastic.co/guide/en/elasticsearch/reference/7.16/configuring-stack-security.html
+#
+# Disable xpack security
+#
+xpack.security.enabled: false