
rg.openwms.common.service.1.7.0.source-code.bootstrap.yml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.openwms.common.service Show documentation
Show all versions of org.openwms.common.service Show documentation
Essential services on common resources like Locations, LocationGroups and TransportUnits
spring:
application:
name: common-service
cloud:
config:
discovery:
enabled: false
service-id: openwms-config
enabled: false
fail-fast: false # true means retry
retry:
max-attempts: 120
discovery:
enabled: false
config:
location: classpath:application.yml
security:
user:
name: user
password: sa
jpa:
open-in-view: false
properties:
org:
hibernate:
envers:
audit_strategy: org.hibernate.envers.strategy.DefaultAuditStrategy
audit_table_suffix: _LOG
revision_field_name: C_REV
revision_type_field_name: C_REV_TYPE
default_schema: public
audit_strategy_validity_end_rev_field_name: C_REV_END
audit_strategy_validity_revend_timestamp_field_name: C_REVEND_TSTMP
show-sql: false
mapping-resources: META-INF/common-orm.xml
jackson:
date-format: "yyyy-MM-dd'T'HH:mm:ssXXX" # Only matches Dates no Instants!
main:
allow-bean-definition-overriding: true
mvc:
format:
date-time: "yyyy-MM-dd'T'HH:mm:ssXXX" # Must match the pattern how of @JsonFormat field annotation patterns
date: yyyy-MM-dd
time: HH:mm:ss
zipkin:
sender:
type: web
feign:
httpclient:
connection-timeout: 30000
connection-timer-repeat: 30000
ribbon:
connectTimeout: 30000
ReadTimeout: 30000
owms:
eureka:
url: http://user:sa@localhost:8761
zone: ${owms.eureka.url}/eureka/
srv:
protocol: http
hostname: localhost
server:
port: ${PORT:8120}
eureka:
client:
instance-info-replication-interval-seconds: 10 # default is 30
service-url:
defaultZone: ${owms.eureka.zone} # Must be camelCase
instance:
hostname: ${owms.srv.hostname}
secure-port-enabled: false
non-secure-port-enabled: true
metadata-map:
username: ${spring.security.user.name}
password: ${spring.security.user.password}
protocol: ${owms.srv.protocol}
zone: ${owms.eureka.zone}
config-protocol: http # The protocol used to access the config server
prefer-ip-address: true
# Request a lease with a validity of 5 seconds. If until then the
# lease has not been renewed, it expires and the Eureka server can evict it.
# Default: 90s
lease-expiration-duration-in-seconds: 5
# The cadence of lease renewal, i.e. how often a heartbeat is sent to Eureka server.
# In this case every 2 seconds. Use this only for development / debugging. In production use the ...
# Default: 30s
lease-renewal-interval-in-seconds: 2
management:
endpoints:
web:
exposure:
include: "*"
health:
rabbit:
enabled: false
metrics:
web:
server:
request:
autotime:
enabled: true
export:
prometheus:
enabled: true
info:
git:
mode: simple
logging:
file:
name: BOOT-COMMON-Service.log
path: "/tmp/owms"
---
spring:
profiles: ASYNCHRONOUS
cloud:
bus:
enabled: true
refresh:
enabled: true
management:
health:
rabbit:
enabled: true
---
spring:
profiles: CLOUD
cloud:
config:
discovery:
enabled: true
enabled: true
fail-fast: true # true means retry
discovery:
enabled: true
---
spring:
profiles: DEMO
jpa:
properties:
hibernate:
hbm2ddl:
import_files: import-DEMO.sql
---
spring:
profiles: DISTRIBUTED
cloud:
bus:
enabled: true
refresh:
enabled: true
config:
discovery:
enabled: true
enabled: true
fail-fast: true # true means retry
discovery:
enabled: true
---
spring:
profiles: HEROKU
main:
banner-mode: "OFF"
cloud:
config:
discovery:
enabled: true
enabled: true
owms:
srv:
protocol: https
hostname: openwms-common-services.herokuapp.com
eureka:
instance:
secure-port-enabled: true
non-secure-port-enabled: false
statusPageUrl: ${owms.srv.protocol}://${owms.srv.hostname}:${server.port}/actuator/info
healthCheckUrl: ${owms.srv.protocol}://${owms.srv.hostname}:${server.port}/actuator/health
homePageUrl: ${owms.srv.protocol}://${owms.srv.hostname}:${server.port}/actuator/
---
spring:
profiles: K8S
rabbitmq:
host: owms-broker
owms:
eureka:
url: http://user:sa@owms-services:8761
srv:
hostname: owms-common
---
spring:
profiles: TEST
cloud:
config:
discovery:
enabled: false
enabled: false
fail-fast: false
discovery:
enabled: false
main:
banner-mode: "off"
zipkin:
enabled: false
discovery-client-enabled: false
sender:
type: rabbit
jpa:
show-sql: false
---
spring:
profiles: TESTPG
jpa:
database: postgresql
generate-ddl: true
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQL9Dialect
temp:
use_jdbc_metadata_defaults: false
default_schema: public
hibernate:
ddl-auto: update
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql:testdb
username: KARL
password: KARL
© 2015 - 2025 Weber Informatics LLC | Privacy Policy