logging:
level:
org.springframework.context.annotation.AnnotationConfigApplicationContext: ERROR
org.springframework.boot.SpringApplication: ERROR
org.springframework.cloud.config.client: ERROR
com.netflixnexusgroup: INFOTRACE
com.nexusgroup.plugout.message.server.filters.VersionHttpFilter: TRACEERROR
com.relayrides: INFO.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}"
server:
ssl:
enabled:# trueWhen you enable security below key-store: /home/docker/certificates/hermod-host-bundle.p12
key-store-password: "PASSWORD"
keyStoreType: PKCS12
spring:
datasource:
url: jdbc:postgresql://mydbserver:5432/hermod
# url: jdbc:mariadb://mydbserver:3306/hermod
# url: jdbc:sqlserver://mydbserver:1433;database=hermod
username: postgres
password: postgres@123
jpa:
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
# dialect: org.hibernate.dialect.MySQL5InnoDBDialect
# dialect: org.hibernate.dialect.SQLServer2012Dialect
hibernate:
ddl-auto: validate
# If the server is exposed on internet without something limiting access to endpoints (not recommended),
# you should only enable specific endpoints and only allow management from localhost
endpoints:
enabled: false
refresh:
enabled: true
health:
enabled: true
info:
enabled: true
mappings: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
management: address: 127.0.0.1key-store: /home/docker/certificates/hermod-host-bundle.p12
security: enabledkey-store-password: false"PASSWORD"
application: hermodkey-store-type: PKCS12
restspring:
datasource:
logurl: falsejdbc:postgresql://mydbserver:5432/hermod
# # Hide exception information from clients.url: jdbc:mariadb://mydbserver:3306/hermod
# url: # This should be enabled in production since you shouldn't reveal too much information
jdbc:sqlserver://mydbserver:1433;database=hermod
username: postgres
password: postgres@123
jpa:
hideExceptionsproperties:
false eventshibernate:
# Hide sensitive log data.dialect: org.hibernate.dialect.PostgreSQLDialect
# This should be enabled in production since you shouldn't reveal too much information
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
# dialect: org.hibernate.dialect.SQLServer2012Dialect
hideSensitivehibernate:
false ddl-auto: validate
application:
# Command callbackhermod:
retries and the delay betweenrest:
each retry callbacklog: false
attempts: # 1Hide exception information to clients
retryDelay: 10 hide-exceptions: true
# Hermod clients/users. Connecting clientsevents:
must set X-Api-Key # Hide sensitive log data.
# This should allowedClients:be enabled in production since you shouldn't #reveal Note!too much information
# The X-Api-Key should be created using base64(clientId:key)
#
hide-sensitive: true
# Command callback retries
callback:
# Hermod has aattempts: helper3
endpoint to generate configuration. Simply use (make sure you have the correct host/port)
# curl 'http://localhost:20400/hermod/rest/util/generateclient/default' retry-delay: 10
# Hermod clients/users. Connecting clients must set X-Api-Key # to get a snippet which can be
pasted to the configuration fileallowed-clients:
# Note!
# The X-Api-Key: ZGVmYXVsdDowZTEyYjNhMTgxYzQ0N2YxYjdkMTc0NTg1OGQ4NTgzZTE5Nzc0M2RiNTY2MzQ0N2E5Y2Q5OWI1ZDc1NDhiMThj
should be created using base64(client- clientIdid:key)
default #
key: 0e12b3a181c447f1b7d1745858d8583e197743db5663447a9cd99b5d7548b18c # Hermod has a helper endpoint #to Optional username:password to be supplied for basic authentication in callbacks
generate configuration. Simply use (make sure you have the correct host/port)
# #curl callbackBasicAuth: username:password'http://localhost:20400/hermod/rest/util/generateclient/default'
# to #get Thea callbacksnippet URLwhich basecan forbe thispasted specificto clientthe configuration file
callbackUrl: http://localhost:20400/hermod/rest#
# X-Api-Key: aGVybW9kLXRlc3RhcHA6MjY5NzJkOGZhOTQxNGI4MWJmMzVjYzllNGI3YmY2NWU1MWZiYjEzNGFiMjY0MGFlYWJkM2U3N2U3ZjE0NDAwMg==ZGVmYXVsdDowZTEyYjNhMTgxYzQ0N2YxYjdkMTc0NTg1OGQ4NTgzZTE5Nzc0M2RiNTY2MzQ0N2E5Y2Q5OWI1ZDc1NDhiMThj
- clientIdclient-id: hermod-testappdefault
key: 26972d8fa9414b81bf35cc9e4b7bf65e51fbb134ab2640aeabd3e77e7f1440020e12b3a181c447f1b7d1745858d8583e197743db5663447a9cd99b5d7548b18c
# Optional username:password to be supplied for basic authentication in callbacks
# callbackBasicAuthcallback-basic-auth: username:password
# The callback URL base for this specific client
callbackUrl: https://<my-hermod-server>:20488/hermod-testapp/rest
# Message server library settings base for this specific client
messageServerLibrary:callback-url: http://localhost:20400/hermod/rest
# X-Api-Key: aGVybW9kLXRlc3RhcHA6MjY5NzJkOGZhOTQxNGI4MWJmMzVjYzllNGI3YmY2NWU1MWZiYjEzNGFiMjY0MGFlYWJkM2U3N2U3ZjE0NDAwMg==
# Public URL to the 'south-bound' message API. Please note that this URL must be reachable- client-id: hermod-testapp
key: 26972d8fa9414b81bf35cc9e4b7bf65e51fbb134ab2640aeabd3e77e7f144002
# from your devices. Try to access it from the browser on your phone Optional username:password to be supplied for basic authentication in callbacks
# callback-basic-auth: username:password
# It can also be the URL# toThe acallback proxyURL frontingbase Hermodfor (withthis SSLspecific offloadingclient
etc) publicUrlcallback-url: https://<my-hermod-server>:2040020488/hermod/rest/ms-testapp/rest
# Message server library settings
message-server-library:
# AMake stringsure toyou usealso forchange the {@code X-Powered-By} header. certificates above if ssl is used
poweredby: Nexuspublic-url: https://<my-hermod-server>:20400/hermod/rest/ms |