Skip to content

Commit

Permalink
Made it simple to deploy under a SCRIPT_NAME prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
anjackson committed Dec 6, 2019
1 parent fe41e8b commit 640b844
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ services:
# ----------------------
log-viewer:
build: .
environment:
- "SCRIPT_NAME=/intranet/logs"
ports:
- "8000:8000"

Expand Down
4 changes: 2 additions & 2 deletions templates/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</head>
<body>

<form class="pure-form toolbar" action="/" method="get">
<form class="pure-form toolbar" action="{{ url_for('root') }}" method="get">

<div class="pure-g toolbar">
<div class="pure-u-4-5">
Expand Down Expand Up @@ -62,7 +62,7 @@

</form>

<iframe src="{{ url_for( 'log') }}?{{ request.query_string.decode('utf-8') }}">
<iframe src="{{ url_for('log') }}?{{ request.query_string.decode('utf-8') }}">
</iframe>

<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
Expand Down
9 changes: 7 additions & 2 deletions topics.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}

0 comments on commit 640b844

Please sign in to comment.