There are link issues on git service generated pages, see gitbook or maven site.
oss-lib-adminclient
A enhanced client for oss-admin (spring-boot-admin)
- Encrypt
security.user.nameandsecurity.user.passwordand expose them to oss-admin. - Custom
/infoendpoint, add encryptedsecurity.user.nameandsecurity.user.passwordinto it.
How to use
In pom.xml
<dependency>
<groupId>cn.home1</groupId>
<artifactId>oss-lib-adminclient-spring-boot-${spring-boot.version}</artifactId>
</dependency>
Config of spring-boot-admin-starter-client
Eureka properties
eureka.client.serviceUrl.defaultZoneNormally use default value.eureka.client.instance.hostnamestatusPageUrlPathandhealthCheckUrlPathdepends on this value.eureka.client.instance.instance-ideureka.client.instance.prefer-ip-addressNormally set to falseeureka.client.instance.statusPageUrlPathImportanteureka.client.instance.healthCheckUrlPathImportanteureka.client.instance.metadata-map.management.context-pathAddmanagement.context-pathinto eureka's metadata.eureka.client.instance.metadata-map.management.portAddmanagement.portinto eureka's metadata.
server.portserver.context-pathandmanagement.portmanagement.context-path. Feign client will useserver.context-pathto build request URL.
If server.port is not same as management.port, statusPageUrlPath and healthCheckUrlPath needs special config, we recommend that use the same port.
Logging properties
logging.fileLog file name. For instanceapplication.loglogging.pathLocation of the log file. For instance/var/log
Example:
logging:
file: ${LOGGING_FILE:oss-admin}.log
path: ${LOGGING_PATH:${user.home}/.oss/oss-admin/logs}
Management security
Basic authentication for actuator endpoints
security.user.roleDefault role of user (USER/ADMIN).
Example:
security.user:
name: admin
password: ${SECURITY_USER_PASSWORD:admin_pass}
role: ADMIN
NOTES: Do dot make a conflict with
oss-lib-security's user that hasADMINrole.
Actuator endpoint
Alter actuator endpoints, for example /beans to /springbeans
endpoints.beans.id=springbeans
endpoints.beans.sensitive=true
endpoints.beans.enabled=true