Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-boot-admin
Commits
8d69cc6b
Commit
8d69cc6b
authored
Nov 21, 2016
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add admin.context-path to turbine proxy url
fixes #341
parent
60c027e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
TurbineAutoConfiguration.java
...g/boot/admin/turbine/config/TurbineAutoConfiguration.java
+5
-3
No files found.
spring-boot-admin-server-ui-turbine/src/main/java/spring/boot/admin/turbine/config/TurbineAutoConfiguration.java
View file @
8d69cc6b
...
...
@@ -29,6 +29,7 @@ import org.springframework.context.annotation.Conditional;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.core.annotation.Order
;
import
de.codecentric.boot.admin.config.AdminServerProperties
;
import
de.codecentric.boot.admin.config.AdminServerWebConfiguration
;
import
de.codecentric.boot.admin.config.RevereseZuulProxyConfiguration
;
import
spring.boot.admin.turbine.web.TurbineController
;
...
...
@@ -36,7 +37,7 @@ import spring.boot.admin.turbine.zuul.filters.StaticRouteLocator;
/**
* Configures all necessary components for the Turbine view.
*
*
* @author Johannes Edmeier
*/
@Configuration
...
...
@@ -61,9 +62,10 @@ public class TurbineAutoConfiguration {
@Bean
@Order
(
100
)
public
StaticRouteLocator
staticRouteLocator
()
{
public
StaticRouteLocator
staticRouteLocator
(
AdminServerProperties
admin
)
{
Collection
<
ZuulRoute
>
routes
=
Collections
.
singleton
(
new
ZuulRoute
(
"/api/turbine/stream/**"
,
properties
.
getUrl
().
toString
()));
.
singleton
(
new
ZuulRoute
(
admin
.
getContextPath
()
+
"/api/turbine/stream/**"
,
properties
.
getUrl
().
toString
()));
return
new
StaticRouteLocator
(
routes
,
server
.
getServletPrefix
(),
zuulProperties
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment