diff options
author | Claudio D. Gasparini <claudio.gasparini@pantheon.tech> | 2021-02-04 09:33:28 +0100 |
---|---|---|
committer | Claudio D. Gasparini <claudio.gasparini@pantheon.tech> | 2021-02-04 12:58:14 +0100 |
commit | b1ccfce0b229d544bf08b1c197a2365b40369796 (patch) | |
tree | fd803e64387205147eda40668532a1aa053f7376 /cps-application/src/main | |
parent | 1540a5809fff8477bfdb6f43fd6c475cf13c6d71 (diff) |
Decouple application configuration file
Agreement is that application configuration should live on OOM
- leave an example of the configuration file under docker
compose to run locally, instead of use OOM. Mainly for devs
- document on README how to run the app with IDE or with docker compose
- remove duplicate code on poms
Issue-ID: CPS-175
Signed-off-by: Claudio D. Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: I328e89dba78cdf4d8abab51e3be5cb6d641064db
Diffstat (limited to 'cps-application/src/main')
-rw-r--r-- | cps-application/src/main/resources/application.yml | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/cps-application/src/main/resources/application.yml b/cps-application/src/main/resources/application.yml deleted file mode 100644 index c3ceecde0a..0000000000 --- a/cps-application/src/main/resources/application.yml +++ /dev/null @@ -1,51 +0,0 @@ -server:
- port: 8080
-
-rest:
- api:
- cps-base-path: /cps/api
- xnf-base-path: /cps-nf-proxy/api
-
-spring:
- main:
- banner-mode: "off"
- 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
-
- cache:
- type: caffeine
- cache-names: yangSchema
- caffeine:
- spec: maximumSize=10000,expireAfterAccess=10m
-# Actuator
-management:
- endpoints:
- web:
- base-path: /manage
- exposure:
- include: info,health,loggers
- endpoint:
- health:
- show-details: always
- # kubernetes probes: liveness and readiness
- probes:
- enabled: true
- loggers:
- enabled: true
-
-logging:
- level:
- org:
- springframework: INFO
|