mirror of https://github.com/halo-dev/halo
feat: modify actuator base path.
parent
4f229d3427
commit
6ce444171b
|
@ -164,7 +164,7 @@ public class HaloConfiguration {
|
|||
|
||||
FilterRegistrationBean<AdminAuthenticationFilter> authenticationFilter = new FilterRegistrationBean<>();
|
||||
authenticationFilter.setFilter(adminAuthenticationFilter);
|
||||
authenticationFilter.addUrlPatterns("/api/admin/*", "/actuator/*", "/api/content/comments");
|
||||
authenticationFilter.addUrlPatterns("/api/admin/*", "/api/content/comments");
|
||||
authenticationFilter.setOrder(1);
|
||||
|
||||
return authenticationFilter;
|
||||
|
|
|
@ -45,6 +45,7 @@ spring:
|
|||
management:
|
||||
endpoints:
|
||||
web:
|
||||
base-path: /api/admin/actuator
|
||||
exposure:
|
||||
include: ['httptrace', 'metrics','env']
|
||||
logging:
|
||||
|
|
|
@ -44,6 +44,7 @@ spring:
|
|||
management:
|
||||
endpoints:
|
||||
web:
|
||||
base-path: /api/admin/actuator
|
||||
exposure:
|
||||
include: ['httptrace', 'metrics','env']
|
||||
logging:
|
||||
|
|
|
@ -45,6 +45,7 @@ spring:
|
|||
management:
|
||||
endpoints:
|
||||
web:
|
||||
base-path: /api/admin/actuator
|
||||
exposure:
|
||||
include: ['httptrace', 'metrics','env']
|
||||
logging:
|
||||
|
|
Loading…
Reference in New Issue