From 67d5c5a26c972730b6db0d2a961050ed18b6936e Mon Sep 17 00:00:00 2001 From: t3chn0m4g3 Date: Wed, 1 Aug 2018 20:09:05 +0000 Subject: [PATCH] get FQDN for ES head from open window --- docker/elk/head/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/elk/head/Dockerfile b/docker/elk/head/Dockerfile index 5a82fb15..bb7c7e6a 100644 --- a/docker/elk/head/Dockerfile +++ b/docker/elk/head/Dockerfile @@ -12,7 +12,7 @@ RUN apk -U --no-cache add \ cd /usr/src/app/ && \ git clone --depth=1 https://github.com/mobz/elasticsearch-head . && \ npm install http-server && \ - sed -i 's/\"http\:\/\/localhost\:9200\"/\"https\:\/\/\\:64297\/es\/\"/' /usr/src/app/_site/app.js && \ + sed -i "s#\"http\:\/\/localhost\:9200\"#window.location.protocol \+ \'\/\/\' \+ window.location.hostname \+ \'\:\' \+ window.location.port \+ \'\/es\/\'#" /usr/src/app/_site/app.js && \ # Setup user, groups and configs addgroup -g 2000 head && \