Skip to content

Commit

Permalink
update elasticsearch for aspire: #985
Browse files Browse the repository at this point in the history
  • Loading branch information
gschmutz committed Dec 16, 2024
1 parent 15a3009 commit 4a22bb7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14588,11 +14588,23 @@ services:
discovery.type: "single-node"
xpack.security.enabled: {{ELASTICSEARCH_security_enabled | default(false)}}
xpack.monitoring.collection.enabled: "false"
xpack.security.http.ssl.enabled: false
xpack.security.transport.ssl.enabled: false
{% if ELASTICSEARCH_security_enabled | default(false) %}
ELASTIC_PASSWORD: ${PLATYS_ELASTICSEARCH_PASSWORD:-{{ELASTICSEARCH_password}}}
{% endif -%} {# ELASTICSEARCH_security_enabled #}
{% endif -%} {# ELASTICSEARCH_security_enabled #}
{% if ELASTICSEARCH_run_secure | default(false) %}
xpack.security.http.ssl.enabled: true # <2>
xpack.security.http.ssl.key: $CERTS_DIR/aspire-quickstart-elastic/aspire-quickstart-elastic.key
xpack.security.http.ssl.certificate_authorities: $CERTS_DIR/ca/ca.crt
xpack.security.http.ssl.certificate: $CERTS_DIR/aspire-quickstart-elastic/aspire-quickstart-elastic.crt
xpack.security.transport.ssl.enabled: true # <3>
xpack.security.transport.ssl.verification_mode: certificate # <4>
xpack.security.transport.ssl.certificate_authorities: $CERTS_DIR/ca/ca.crt
xpack.security.transport.ssl.certificate: $CERTS_DIR/aspire-quickstart-elastic/aspire-quickstart-elastic.crt
xpack.security.transport.ssl.key: $CERTS_DIR/aspire-quickstart-elastic/aspire-quickstart-elastic.key
{% else -%} {# ELASTICSEARCH_run_secure #}
xpack.security.http.ssl.enabled: false
xpack.security.transport.ssl.enabled: false
{% endif -%} {# ELASTICSEARCH_run_secure #}
http.cors.enabled: "true"
http.cors.allow-origin: "http://${DOCKER_HOST_IP}:28275,http://${PUBLIC_IP}:28275,http://dejavu:1358,http://dataplatform:28125,http://dataplatform:28125,http://${PUBLIC_IP}:28125,http://${DOCKER_HOST_IP}:28125,http://127.0.0.1:1358"
http.cors.allow-headers: "X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization"
Expand Down Expand Up @@ -14758,6 +14770,10 @@ services:
environment:
discovery.type: "single-node"
ELASTICSEARCH_HOSTS: http://elasticsearch-1:9200
{% if ELASTICSEARCH_security_enabled | default(false) %}
ELASTICSEARCH_USERNAME: elastic
ELASTICSEARCH_PASSWORD: ${PLATYS_ELASTICSEARCH_PASSWORD:-{{ELASTICSEARCH_password}}}
{% endif -%} {# ELASTICSEARCH_security_enabled #}
SERVER_HOST: "0.0.0.0"
SERVER_NAME: "kibana"
XPACK_GRAPH_enabled: "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1691,6 +1691,7 @@
# one of 'oss', 'elastic',
ELASTICSEARCH_edition: 'oss'
ELASTICSEARCH_security_enabled: false
ELASTICSEARCH_run_secure: false # not yet supported
ELASTICSEARCH_password: abc123!

#
Expand Down

0 comments on commit 4a22bb7

Please sign in to comment.