From 6b8c1f5d9844c92774243834aa3f0f7136a1e222 Mon Sep 17 00:00:00 2001 From: Quoc Nghia Nguyen Date: Fri, 13 Apr 2018 13:56:42 +0200 Subject: Externalized app params for deployment - .env: contains environment variables which override application's default properties - Dockerfile & docker-compose.yml: takes environment variables into account - application.properties: included external services configurations Change-Id: I49937e66d514a42a174cff3bf6c383ecfc8e28e0 Issue-ID: EXTAPI-49 Signed-off-by: Quoc Nghia Nguyen --- src/main/resources/application.properties | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'src/main/resources/application.properties') diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 4ddd54f..bb07e4d 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -21,3 +21,42 @@ server.port = 8080 # LOGGING logging.level.=INFO +# ONAP +onap.lcpCloudRegionId= +onap.tenantId= +onap.cloudOwner= + +# NBI +nbi.url=http://localhost:8080/nbi/api/v1 +nbi.callForVNF=false + +# SDC +sdc.host=http://localhost:8090 +sdc.header.ecompInstanceId= +sdc.header.authorization= + +# AAI +aai.host=http://localhost:8090 +aai.header.authorization= +aai.api.id=AAI + +# SO +so.host=http://localhost:8090 +so.header.authorization= +so.api.id=SO + +# MONGO +spring.data.mongodb.host=localhost +spring.data.mongodb.port=27017 +spring.data.mongodb.database=ServiceOrderDB + +# MYSQL +spring.datasource.url=jdbc:mariadb://localhost:3306/nbi +spring.datasource.username=root +spring.datasource.password=secret +spring.datasource.testWhileIdle=true +spring.datasource.validationQuery=SELECT 1 +spring.datasource.driver-class-name=org.mariadb.jdbc.Driver +spring.jpa.show-sql=false +spring.jpa.hibernate.ddl-auto=update +spring.jpa.hibernate.naming-strategy=org.hibernate.cfg.ImprovedNamingStrategy \ No newline at end of file -- cgit 1.2.3-korg