Skip to content

Commit 4460dba

Browse files
committed
ENV variables for network.host and http.cors.enabled
1 parent 10c3d0c commit 4460dba

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

elasticsearch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ node:
55
master: ${NODE_MASTER}
66
data: ${NODE_DATA}
77

8-
network.host: _site_
8+
network.host: ${NETWORK_HOST}
99

1010
path:
1111
data: /data/data
@@ -19,7 +19,7 @@ http:
1919
enabled: ${HTTP_ENABLE}
2020
compression: true
2121
cors:
22-
enabled: true
22+
enabled: ${HTTP_CORS_ENABLE}
2323

2424
cloud:
2525
kubernetes:

run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export CLUSTER_NAME=${CLUSTER_NAME:-elasticsearch-default}
1212
export NODE_MASTER=${NODE_MASTER:-true}
1313
export NODE_DATA=${NODE_DATA:-true}
1414
export HTTP_ENABLE=${HTTP_ENABLE:-true}
15+
export HTTP_CORS_ENABLE=${HTTP_CORS_ENABLE:-true}
16+
export NETWORK_HOST=${NETWORK_HOST:-_site_}
1517
export MULTICAST=${MULTICAST:-true}
1618

1719
# Kubernetes stuff

0 commit comments

Comments
 (0)