aboutsummaryrefslogtreecommitdiffstats
path: root/cps-rest/src/main/resources/application.yml
diff options
context:
space:
mode:
authorJessica Wagantall <jwagantall@linuxfoundation.org>2020-11-06 10:20:47 -0800
committerJessica Wagantall <jwagantall@linuxfoundation.org>2020-11-06 10:20:47 -0800
commit7f6616e5d7e2759bc21fad0e363e4e356a8ec8f9 (patch)
treea3f327d7687ff738f1c6e5fd8eb86d457d33a28e /cps-rest/src/main/resources/application.yml
parent1d05f0ebdf4a0e5107b2dd352f5303dc9dad907c (diff)
Move cps files to root dir
Issue-ID: CIMAN-33 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Diffstat (limited to 'cps-rest/src/main/resources/application.yml')
-rw-r--r--cps-rest/src/main/resources/application.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/cps-rest/src/main/resources/application.yml b/cps-rest/src/main/resources/application.yml
new file mode 100644
index 0000000000..e8af0bcfb2
--- /dev/null
+++ b/cps-rest/src/main/resources/application.yml
@@ -0,0 +1,40 @@
+server:
+ port: 8080
+ servlet:
+ context-path: /api/cps
+
+spring:
+ main:
+ banner-mode: "off"
+# for POC only, later this should move to cpi-ri module
+ jpa:
+ ddl-auto: create
+ open-in-view: false
+ properties:
+ hibernate:
+ enable_lazy_load_no_trans: true
+ dialect: org.hibernate.dialect.PostgreSQLDialect
+
+ datasource:
+ url: jdbc:postgresql://${DB_HOST}:5432/cpsdb
+ username: ${DB_USERNAME}
+ password: ${DB_PASSWORD}
+ driverClassName: org.postgresql.Driver
+ initialization-mode: always
+
+# Actuator
+management:
+ endpoints:
+ web:
+ base-path: /manage
+ endpoint:
+ health:
+ show-details: always
+ # kubernetes probes: liveness and readiness
+ probes:
+ enabled: true
+
+logging:
+ level:
+ org:
+ springframework: INFO