forked from DSpace/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathactuator.cfg
More file actions
89 lines (73 loc) · 4.69 KB
/
Copy pathactuator.cfg
File metadata and controls
89 lines (73 loc) · 4.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#---------------------------------------------------------------#
#------------SPRING BOOT ACTUATOR CONFIGURATION-----------------#
#---------------------------------------------------------------#
# Health endpoint configuration, for more details see https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints.health
## Configuration to establish when show the health status details
management.endpoint.health.show-details = when-authorized
## Configuration which users can see the health status details
management.endpoint.health.roles = ADMIN
## Configuration to establis
management.endpoint.health.status.order= down, out-of-service, up-with-issues, up, unknown
## Configuration that enables only health and info endpoints
management.endpoints.web.exposure.include=health,info,scheduledtasks
## Configuration to set 200 as status of health http response when it is DOWN or OUT_OF_SERVICE
## The DSpace UI requires these be set to 200 in order to support health status reports when services are down.
management.endpoint.health.status.http-mapping.down = 200
management.endpoint.health.status.http-mapping.out-of-service = 200
management.health.ping.enabled = false
management.health.diskSpace.enabled = false
# CORS configuration for all actuators
management.endpoints.web.cors.allowed-origins = ${rest.cors.allowed-origins}
management.endpoints.web.cors.allowed-methods = *
management.endpoints.web.cors.allowed-headers = Accept, Authorization, Content-Type, Origin, X-On-Behalf-Of, X-Requested-With, X-XSRF-TOKEN, X-CORRELATION-ID, X-REFERRER
management.endpoints.web.cors.exposed-headers = Authorization, DSPACE-XSRF-TOKEN, Location, WWW-Authenticate
management.endpoints.web.cors.allow-credentials = true
#---------------------------------------------------------------#
#------------------------INFO ENDPOINT--------------------------#
#---------------------------------------------------------------#
# All properties under the info key will be automatically exposed by the info actuator with a json structure. Furthermore, it is possible to
# enrich the content of the response given by the info actuator by defining in the Spring context beans of classes that implements InfoContributor.
management.info.env.enabled = true
management.info.java.enabled = true
info.app.name = ${dspace.name}
info.app.version = ${dspace.version}
info.app.dir = ${dspace.dir}
info.app.url = ${dspace.server.url}
info.app.db = ${db.url}
info.app.solr.server = ${solr.server}
info.app.solr.prefix = ${solr.multicorePrefix}
info.app.mail.server = ${mail.server}
info.app.mail.from-address = ${mail.from.address}
info.app.mail.feedback-recipient = ${feedback.recipient}
info.app.mail.mail-admin = ${mail.admin}
info.app.mail.mail-helpdesk = ${mail.helpdesk}
info.app.mail.alert-recipient = ${alert.recipient}
info.app.cors.allowed-origins = ${rest.cors.allowed-origins}
info.app.ui.url = ${dspace.ui.url}
#---------------------------------------------------------------#
#--------------------HEALTH GROUPS------------------------------#
#---------------------------------------------------------------#
# Why groups exist: the aggregated /actuator/health is DOWN on a perfectly
# healthy, freshly installed repository. SEOHealthIndicator calls down() when
# robots.txt / sitemap / SSR are missing, and status.order ranks "down" highest,
# so that single indicator drags the whole aggregate to DOWN. Restarting the
# container never fixes a missing robots.txt, so a container healthcheck wired
# to the aggregate would restart-loop forever.
# Groups let a probe ask a narrower question. Both groups map DOWN to a real
# 503 (the global mapping must stay 200 - the Angular /health page relies on it)
# so probes can be a plain `curl -f` with no body parsing.
# LIVENESS = "should this process be restarted?"
# Only components a restart can actually fix. Solr is deliberately NOT here:
# restarting Tomcat does not bring Solr back, it would only cause a restart loop
# and take down requests that do not need Solr at all.
management.endpoint.health.group.liveness.include = db
management.endpoint.health.group.liveness.show-details = never
management.endpoint.health.group.liveness.status.http-mapping.down = 503
management.endpoint.health.group.liveness.status.http-mapping.out-of-service = 503
# READINESS = "should the load balancer send traffic here?"
# Wider - includes Solr. A Solr outage takes the instance out of rotation
# without restarting it.
management.endpoint.health.group.readiness.include = db,solrSearchCore,solrStatisticsCore
management.endpoint.health.group.readiness.show-details = never
management.endpoint.health.group.readiness.status.http-mapping.down = 503
management.endpoint.health.group.readiness.status.http-mapping.out-of-service = 503