Springboot 2.0 upgrade
[so.git] / adapters / mso-catalog-db-adapter / src / main / resources / application.yaml
1 # will be used as entry in DB to say SITE OFF/ON for healthcheck
2 # MSO Properties go here
3      
4 server:
5   port: 8080 
6   tomcat:
7       max-threads: 50
8      
9 mso:
10   logPath: ./logs/openstack
11   site-name: localDevEnv
12   async:
13     core-pool-size: 50
14     max-pool-size: 50
15     queue-capacity: 500
16     
17 # CatalogDB
18 spring:
19   datasource:
20     jdbc-url: jdbc:mariadb://${DB_HOST}:${DB_PORT}/catalogdb
21     username: ${DB_USERNAME}
22     password: ${DB_PASSWORD}
23     driver-class-name: org.mariadb.jdbc.Driver
24     initialization-mode: never
25   jpa:
26       show-sql: true
27       hibernate:
28         dialect: org.hibernate.dialect.MySQL5Dialect
29         ddl-auto: validate
30         naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
31         enable-lazy-load-no-trans: true
32   jackson:
33     serialization:
34       fail-on-empty-beans: false
35 flyway:
36   baseline-on-migrate: false
37   jdbc-url:  jdbc:mariadb://${DB_HOST}:${DB_PORT}/catalogdb
38   user: ${DB_ADMIN_USERNAME}
39   password: ${DB_ADMIN_PASSWORD}
40   outOfOrder: true
41   validateOnMigrate: false
42
43 management:
44   endpoints:
45     web:
46       base-path: /manage
47   server:
48     servlet:
49       context-path: /manage
50   metrics:
51     se-global-registry: false
52     export:
53       prometheus:
54         enabled: true # Whether exporting of metrics to Prometheus is enabled.
55         step: 1m # Step size (i.e. reporting frequency) to use.  
56