logging:
level:
org.springframework.context.annotation.AnnotationConfigApplicationContext: ERROR
org.springframework.boot.SpringApplication: ERROR
org.springframework.cloud.config.client: ERROR
com.nexusgroup: TRACE
com.nexusgroup.plugout.message.server.filters.VersionHttpFilter: ERROR
com.nexusgroup.cod.hermod.service.MessagePlugoutService: ERROR
org.hibernate.engine.jdbc.spi.SqlExceptionHelper: OFF
pattern:
console: "%d{yyyy-MM-dd}T%d{HH:mm:ss.SSS}Z ${LOG_LEVEL_PATTERN:- %5p} [%t] %-40.40logger{39} [%mdc] : %m%n${LOG_EXCEPTION_CONVERSION_WORD:%wEx}"
# Enable info endpoint
management:
info:
env:
enabled: true
server:
ssl:
# When you enable security below you must put a real certificate in the certificates directory
# and also change all http to https in this file + docker-compose.yml
enabled: false
key-store: /home/docker/certificates/hermod-host-bundle.p12
key-store-password: "PASSWORD"
key-store-type: PKCS12
# To disable/enable apidocs/swagger-ui
springdoc:
override-with-generic-response: false
api-docs:
enabled: false
swagger-ui:
enabled: false
spring:
datasource:
## sqlserver jdbc driver use ssl encryption by default, to disable change it to encrypt=false. For more info: https://learn.microsoft.com/en-us/sql/connect/jdbc/understanding-ssl-support?view=sql-server-ver16
# url: jdbc:sqlserver://mydbserver:1433;database=hermod;encrypt=true
url: jdbc:postgresql://mydbserver:5432/hermod
# url: jdbc:mariadb://mydbserver:3306/hermod
username: postgres
password: postgres@123
### Oracle Database example
# For SID, use the following url
#url: jdbc:oracle:thin:@HOST_NAME:1521:SID_NAME
#username: USER_NAME
#password: PASSWORD
# For Servername, use the following url
# url:jdbc:oracle:thin:USER_NAME/PASSWORD@HOST_NAME:1521/SERVICE_NAME
jpa:
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
# dialect: org.hibernate.dialect.MySQL5InnoDBDialect
# dialect: org.hibernate.dialect.SQLServer2012Dialect
# dialect: org.hibernate.dialect.Oracle12cDialect
hibernate:
ddl-auto: validate
application:
hermod:
rest:
log: false
# Hide exception information to clients
hide-exceptions: true
events:
# Hide sensitive log data.
# This should be enabled in production since you shouldn't reveal too much information
hide-sensitive: true
# Command callback retries
callback:
attempts: 3
retry-delay: 10
# Hermod clients/users. Connecting clients must set X-Api-Key
allowed-clients:
# Note!
# The X-Api-Key should be created using base64(client-id:key)
#
# Hermod has a helper endpoint to generate configuration. Simply use (make sure you have the correct host/port)
# curl 'http://localhost:20400/hermod/rest/util/generateclient/default'
# to get a snippet which can be pasted to the configuration file
#
# X-Api-Key: ZGVmYXVsdDowZTEyYjNhMTgxYzQ0N2YxYjdkMTc0NTg1OGQ4NTgzZTE5Nzc0M2RiNTY2MzQ0N2E5Y2Q5OWI1ZDc1NDhiMThj
- client-id: default
key: 0e12b3a181c447f1b7d1745858d8583e197743db5663447a9cd99b5d7548b18c
# Optional username:password to be supplied for basic authentication in callbacks
# callback-basic-auth: username:password
# The callback URL base for this specific client
callback-url: http://localhost:20400/hermod/rest
# X-Api-Key: aGVybW9kLXRlc3RhcHA6MjY5NzJkOGZhOTQxNGI4MWJmMzVjYzllNGI3YmY2NWU1MWZiYjEzNGFiMjY0MGFlYWJkM2U3N2U3ZjE0NDAwMg==
- client-id: hermod-testapp
key: 26972d8fa9414b81bf35cc9e4b7bf65e51fbb134ab2640aeabd3e77e7f144002
# Optional username:password to be supplied for basic authentication in callbacks
# callback-basic-auth: username:password
# The callback URL base for this specific client
callback-url: https://<my-hermod-server>:20488/hermod-testapp/rest
# Message server library settings
message-server-library:
# Make sure you also change the certificates above if ssl is used
public-url: https://<my-hermod-server>:20400/hermod/rest/ms |