File tree Expand file tree Collapse file tree 5 files changed +11
-6
lines changed
java/de/numcodex/feasibility_gui_backend/config Expand file tree Collapse file tree 5 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -186,13 +186,13 @@ jobs:
186
186
run : docker compose -f .github/integration-test/docker-compose.yml up -d
187
187
188
188
- name : Wait for Dataportal Backend
189
- run : .github/scripts/wait-for-url.sh http://localhost:8091/actuator/health
189
+ run : .github/scripts/wait-for-url.sh http://localhost:8091/api/v5/ actuator/health
190
190
191
191
- name : Check if Dataportal Backend is correctly running with the user with id 10001
192
192
run : .github/scripts/check-if-running-as-user-10001.sh
193
193
194
194
- name : Check info endpoint
195
- run : .github/scripts/check-info-endpoint.sh http://localhost:8091/actuator/info
195
+ run : .github/scripts/check-info-endpoint.sh http://localhost:8091/api/v5/ actuator/info
196
196
197
197
- name : Wait for Blaze
198
198
run : .github/scripts/wait-for-url.sh http://localhost:8082/health
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ RUN mkdir logging && \
19
19
apk --no-cache add curl bash
20
20
USER 10001
21
21
22
- HEALTHCHECK --interval=5s --start-period=10s CMD curl -s -f http://localhost:8090/actuator/health || exit 1
22
+ HEALTHCHECK --interval=5s --start-period=10s CMD curl -s -f http://localhost:8090/api/v5/ actuator/health || exit 1
23
23
24
24
COPY ./target/*.jar ./dataportal-backend.jar
25
25
COPY ontology ontology
Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ DATAPORTAL_DATABASE_PORT=<your-desired-port> docker-compose up -d
312
312
313
313
### Testing if the Container is Running Properly
314
314
```
315
- GET http://localhost:8090/actuator/health
315
+ GET http://localhost:8090/api/v5/ actuator/health
316
316
```
317
317
318
318
Should reply with status 200 and a JSON object
Original file line number Diff line number Diff line change @@ -98,6 +98,8 @@ public SecurityFilterChain apiFilterChain(
98
98
99
99
http .authorizeHttpRequests (authorize -> authorize
100
100
.requestMatchers (PathPatternRequestMatcher .withDefaults ().matcher (PATH_SWAGGER_CONFIG )).permitAll ()
101
+ .requestMatchers (PathPatternRequestMatcher .withDefaults ().matcher (PATH_API + PATH_ACTUATOR_HEALTH )).permitAll ()
102
+ .requestMatchers (PathPatternRequestMatcher .withDefaults ().matcher (PATH_API + PATH_ACTUATOR_INFO )).permitAll ()
101
103
.requestMatchers (PathPatternRequestMatcher .withDefaults ().matcher (PATH_API + PATH_SWAGGER_UI )).permitAll ()
102
104
.requestMatchers (PathPatternRequestMatcher .withDefaults ().matcher (PATH_API + PATH_TERMINOLOGY + "/**" )).hasAuthority (keycloakAllowedRole )
103
105
.requestMatchers (PathPatternRequestMatcher .withDefaults ().matcher (PATH_API + PATH_QUERY + PATH_DATA )).hasAuthority (keycloakAllowedRole )
@@ -108,8 +110,6 @@ public SecurityFilterChain apiFilterChain(
108
110
.requestMatchers (PathPatternRequestMatcher .withDefaults ().matcher (PATH_API + "/**" )).hasAnyAuthority (keycloakAdminRole , keycloakAllowedRole )
109
111
.requestMatchers (PathPatternRequestMatcher .withDefaults ().matcher (PATH_API + PATH_DSE + "/**" )).hasAnyAuthority (keycloakAdminRole , keycloakAllowedRole )
110
112
.requestMatchers (PathPatternRequestMatcher .withDefaults ().matcher (PATH_API + PATH_CODEABLE_CONCEPT + "/**" )).hasAnyAuthority (keycloakAdminRole , keycloakAllowedRole )
111
- .requestMatchers (PathPatternRequestMatcher .withDefaults ().matcher (PATH_ACTUATOR_HEALTH )).permitAll ()
112
- .requestMatchers (PathPatternRequestMatcher .withDefaults ().matcher (PATH_ACTUATOR_INFO )).permitAll ()
113
113
.anyRequest ().authenticated ()
114
114
)
115
115
.oauth2ResourceServer (oauth2 -> oauth2
Original file line number Diff line number Diff line change @@ -35,8 +35,13 @@ springdoc:
35
35
management :
36
36
endpoints :
37
37
web :
38
+ cors :
39
+ allowed-origins : " ${ALLOWED_ORIGINS:http://localhost}"
40
+ allowed-methods : OPTIONS, GET
41
+ allowed-headers : " *"
38
42
exposure :
39
43
include : " health, info"
44
+ base-path : /api/v5/actuator
40
45
access :
41
46
default : none
42
47
endpoint :
You can’t perform that action at this time.
0 commit comments