Skip to content

Commit bd8b328

Browse files
authored
[ISSUE-143] Fix stream connection URLs when running behind a reverse proxy with a prefix (#154)
1 parent 09b13e3 commit bd8b328

File tree

6 files changed

+18
-10
lines changed

6 files changed

+18
-10
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22
The format is based on [Keep a Changelog](http://keepachangelog.com/)
33
and this project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## 2.1.5 (UNRELEASED)
6+
7+
#### Bug fixes
8+
- [ISSUE-143](https://github.com/SourceLabOrg/kafka-webview/issues/143) Fix URLs for stream connections when running Kafka-Webview behind a reverse proxy with a URL Prefix.
9+
10+
#### New features
11+
512
## 2.1.4 (02/19/2019)
13+
614
- [ISSUE-136](https://github.com/SourceLabOrg/kafka-webview/issues/136) Fix URLs when running Kafka-Webview behind a reverse proxy with a URL prefix. You can configure Kafka WebView by setting the following configuration option in your config.yml file:
715
- Updated Kafka Client library version from 2.0.0 to 2.0.1
816

dev-cluster/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<parent>
66
<artifactId>kafka-webview</artifactId>
77
<groupId>org.sourcelab</groupId>
8-
<version>2.1.4</version>
8+
<version>2.1.5</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

1212
<artifactId>dev-cluster</artifactId>
13-
<version>2.1.4</version>
13+
<version>2.1.5</version>
1414

1515
<!-- Require Maven 3.3.9 -->
1616
<prerequisites>

kafka-webview-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.sourcelab</groupId>
77
<artifactId>kafka-webview</artifactId>
8-
<version>2.1.4</version>
8+
<version>2.1.5</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111
<artifactId>kafka-webview-plugin</artifactId>

kafka-webview-ui/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
<parent>
66
<artifactId>kafka-webview</artifactId>
77
<groupId>org.sourcelab</groupId>
8-
<version>2.1.4</version>
8+
<version>2.1.5</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111
<artifactId>kafka-webview-ui</artifactId>
12-
<version>2.1.4</version>
12+
<version>2.1.5</version>
1313

1414
<!-- Module Description and Ownership -->
1515
<name>Kafka WebView UI</name>

kafka-webview-ui/src/main/resources/templates/stream/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ <h4 class="alert-heading">Stream Disconnected</h4>
104104
stompDebug: null,
105105

106106
// End point to connect
107-
socketUrl: "/websocket",
107+
socketUrl: "[[@{/websocket}]]",
108108

109109
// End point to consume a view
110110
consumerBaseUrl: "/user/topic/view",
@@ -118,15 +118,15 @@ <h4 class="alert-heading">Stream Disconnected</h4>
118118
},
119119

120120
getSubscribeUrl: function() {
121-
return SocketDetails.socketUrl + '/consume/' + SocketDetails.viewId;
121+
return '/websocket/consume/' + SocketDetails.viewId;
122122
},
123123

124124
getPauseUrl: function() {
125-
return SocketDetails.socketUrl + '/pause/' + SocketDetails.viewId;
125+
return '/websocket/pause/' + SocketDetails.viewId;
126126
},
127127

128128
getResumeUrl: function() {
129-
return SocketDetails.socketUrl + '/resume/' + SocketDetails.viewId;
129+
return '/websocket/resume/' + SocketDetails.viewId;
130130
},
131131

132132
// Connect to web socket

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>org.sourcelab</groupId>
88
<artifactId>kafka-webview</artifactId>
99
<packaging>pom</packaging>
10-
<version>2.1.4</version>
10+
<version>2.1.5</version>
1111

1212
<!-- Define submodules -->
1313
<modules>

0 commit comments

Comments
 (0)