From 640b8444a7a868d8360a288c8f798a7c70dee7b8 Mon Sep 17 00:00:00 2001 From: Andrew Jackson Date: Fri, 6 Dec 2019 21:33:59 +0000 Subject: [PATCH] Made it simple to deploy under a SCRIPT_NAME prefix. --- docker-compose.yml | 2 ++ templates/viewer.html | 4 ++-- topics.json | 9 +++++++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0d0eebe..c883fa0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,6 +7,8 @@ services: # ---------------------- log-viewer: build: . + environment: + - "SCRIPT_NAME=/intranet/logs" ports: - "8000:8000" diff --git a/templates/viewer.html b/templates/viewer.html index df75ddc..024ed4d 100644 --- a/templates/viewer.html +++ b/templates/viewer.html @@ -29,7 +29,7 @@ -
+
@@ -62,7 +62,7 @@ - diff --git a/topics.json b/topics.json index 1cc68e8..e36f859 100644 --- a/topics.json +++ b/topics.json @@ -1,7 +1,12 @@ { "test-log": { - "title": "Test Log", + "title": "Localhost Test Log", "topic": "fc.crawled", "broker": "localhost:9092" + }, + "docker-log": { + "title": "Docker Test Log", + "topic": "fc.crawled", + "broker": "kafka:9092" } -} \ No newline at end of file +}