Skip to content

Commit 9295ced

Browse files
committed
new: expose application status
1 parent 6e690d5 commit 9295ced

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/framework/security/SecurityConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http) {
120120
ServerWebExchangeMatchers.pathMatchers(HttpMethod.GET, NewUrl.CONFIG_URL),
121121
ServerWebExchangeMatchers.pathMatchers(HttpMethod.GET, NewUrl.CONFIG_URL + "/deploymentId"),
122122
ServerWebExchangeMatchers.pathMatchers(HttpMethod.HEAD, NewUrl.STATE_URL + "/healthCheck"),
123+
ServerWebExchangeMatchers.pathMatchers(HttpMethod.GET, NewUrl.PREFIX + "/status/**"),
123124
ServerWebExchangeMatchers.pathMatchers(HttpMethod.GET, NewUrl.APPLICATION_URL + "/*/view"),
124125
ServerWebExchangeMatchers.pathMatchers(HttpMethod.GET, NewUrl.APPLICATION_URL + "/*/view_marketplace"),
125126
ServerWebExchangeMatchers.pathMatchers(HttpMethod.GET, NewUrl.APPLICATION_URL + "/marketplace-apps"), // marketplace apps

server/api-service/lowcoder-server/src/main/resources/application.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,27 @@ springdoc:
9898
paths-to-exclude: /api/v1/**
9999

100100
management:
101+
endpoints:
102+
enabled-by-default: false
103+
web:
104+
base-path: "/api/status"
105+
exposure:
106+
include: "health,metrics,prometheus"
107+
endpoint:
108+
health:
109+
show-details: never
110+
show-components: always
111+
enabled: true
112+
metrics:
113+
enabled: true
114+
prometheus:
115+
enabled: true
101116
health:
102117
mail:
103-
enabled: false
118+
enabled: false
119+
db:
120+
enabled: true
121+
redis:
122+
enabled: true
123+
diskspace:
124+
enabled: false

0 commit comments

Comments
 (0)