AutoPacker-OSS / autopacker

MIT License
6 stars 1 forks source link

Configure actuator and logging endpoints in application.properties for the services #91

Closed ANicholasson closed 3 years ago

ANicholasson commented 3 years ago

Snippet of an example configuration:

# Allow specific endpoint access
management.endpoints.web.cors.allowed-origins = *
management.endpoints.web.cors.allowed-methods = GET

# Logging related settings
logging.path=./src/main/resources/logs/
# Maximum archive log files to keep
# TODO Fix this
logging.file.max-history=2
# When file is over limit it will save the old version in a .gz file.
# For example in a given format spring.log.2019-02-23.0.gz
logging.file.max-size=50MB

# Making custom endpoint accessible
management.endpoints.web.exposure.include=health, info-log