add more endpoints to check the status for
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Failing after 22s
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Failing after 22s
This commit is contained in:
parent
3cf16bd2eb
commit
b708191267
@ -18,7 +18,7 @@ public class WebRequest {
|
|||||||
|
|
||||||
static {
|
static {
|
||||||
HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory();
|
HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory();
|
||||||
requestFactory.setConnectTimeout(5000); // 5 seconds
|
requestFactory.setConnectTimeout(2500); // 2.5 seconds
|
||||||
CLIENT = RestClient.builder()
|
CLIENT = RestClient.builder()
|
||||||
.requestFactory(requestFactory)
|
.requestFactory(requestFactory)
|
||||||
.build();
|
.build();
|
||||||
|
@ -55,6 +55,10 @@ public class MojangService {
|
|||||||
private static final String MOJANG_ENDPOINT_STATUS_KEY = "mojang";
|
private static final String MOJANG_ENDPOINT_STATUS_KEY = "mojang";
|
||||||
private static final List<EndpointStatus> MOJANG_ENDPOINTS = List.of(
|
private static final List<EndpointStatus> MOJANG_ENDPOINTS = List.of(
|
||||||
new EndpointStatus("https://textures.minecraft.net", List.of(HttpStatus.BAD_REQUEST)),
|
new EndpointStatus("https://textures.minecraft.net", List.of(HttpStatus.BAD_REQUEST)),
|
||||||
|
new EndpointStatus("https://session.minecraft.net", List.of(HttpStatus.NOT_FOUND)),
|
||||||
|
new EndpointStatus("https://libraries.minecraft.net", List.of(HttpStatus.NOT_FOUND)),
|
||||||
|
new EndpointStatus("https://assets.mojang.com", List.of(HttpStatus.NOT_FOUND)),
|
||||||
|
new EndpointStatus("https://api.minecraftservices.com", List.of(HttpStatus.FORBIDDEN)),
|
||||||
new EndpointStatus(API_ENDPOINT, List.of(HttpStatus.OK)),
|
new EndpointStatus(API_ENDPOINT, List.of(HttpStatus.OK)),
|
||||||
new EndpointStatus(SESSION_SERVER_ENDPOINT, List.of(HttpStatus.FORBIDDEN))
|
new EndpointStatus(SESSION_SERVER_ENDPOINT, List.of(HttpStatus.FORBIDDEN))
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user