d48850558bfa9fce90842468d99d88792bb6fadd
[externalapi/nbi.git] / src / main / resources / application.properties
1 #
2 #     Copyright (c) 2018 Orange
3 #
4 #     Licensed under the Apache License, Version 2.0 (the "License");
5 #     you may not use this file except in compliance with the License.
6 #     You may obtain a copy of the License at
7 #
8 #         http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #     Unless required by applicable law or agreed to in writing, software
11 #     distributed under the License is distributed on an "AS IS" BASIS,
12 #     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #     See the License for the specific language governing permissions and
14 #     limitations under the License.
15 #
16
17
18 # PROFILE
19 # used for scheduling
20 spring.profiles.active               = default
21
22 # VERSION
23 nbi.version                          = v3
24
25 # SERVER
26 server.servlet.context-path          = /nbi/api/${nbi.version}
27 server.port                          = 8080
28
29 # LOGGING
30 logging.level.                       = WARN
31 logging.level.org.springframework    = OFF
32 logging.level.org.onap               = INFO
33 logging.level.root                   = WARN
34 spring.main.banner-mode              = off
35
36 # ONAP
37 onap.lcpCloudRegionId                = RegionOne
38 onap.tenantId                        = 6e97a2bd51d74f6db5671d8dc1517d82
39 onap.cloudOwner                      = CloudOwner
40
41 # NBI
42 nbi.url                              = http://localhost:${server.port}${server.servlet.context-path}
43 nbi.callForVNF                       = false
44
45 # External NBI
46 external.nbi.url                     = http://{targetUrl}:${server.port}${server.servlet.context-path}
47
48 # SCHEDULER
49 scheduler.pollingDurationInMins      = 360
50 serviceOrder.schedule                = 5000
51 serviceOrder.initial                 = 1
52 executionTask.schedule               = 2000
53 executionTask.initial                = 1
54 dmaapCheck.schedule                  = 10000
55 dmaapCheck.initial                   = 1
56
57 # SDC
58 sdc.host                             = http://10.0.3.1:8080
59 sdc.header.ecompInstanceId           = demo
60 sdc.header.authorization             = Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=
61 # AAI
62
63 aai.host                             = https://10.0.1.1:8443
64 aai.header.authorization             = Basic QUFJOkFBSQ==
65 aai.api.id                           = NBI
66 aai.header.transaction.id            = 808b54e3-e563-4144-a1b9-e24e2ed93d4f
67 # SO
68
69 so.host                              = http://10.0.5.1:8080
70 so.header.authorization              = Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==
71 so.api.id                            = SO
72 so.owning.entity.id                  = 6b5b6b70-4e9a-4f6f-8b7b-cbd7cf990c6e
73 so.owning.entity.name                = OE-generic
74 so.project.name                      = Project-generic
75
76 # DMAAP
77 dmaap.host                           = http://10.0.6.1:3904
78 dmaap.aai.topic                      = AAI-EVENT
79 dmaap.sdc.topic                      = SDC-DISTR-NOTIF-TOPIC-AUTO
80 dmaap.consumergroup                  = NBICG1
81 dmaap.consumerid                     = NBIC1
82 dmaap.timeout                        = 2000
83
84 # MSB
85 msb.enabled                          = true
86 msb.discovery.host                   = msb_discovery
87 msb.discovery.port                   = 10081
88 msb.discovery.retry                  = 1
89 msb.discovery.retry_interval         = 5000
90 msb.service.host                     =
91 msb.service.name                     = nbi
92 msb.service.custom_path              =
93 msb.service.protocol                 = REST
94 msb.service.visual_range             = 1
95 msb.service.enable_ssl               = false
96
97 # MONGO
98 spring.data.mongodb.host             = localhost
99 spring.data.mongodb.port             = 27017
100 spring.data.mongodb.database         = ServiceOrderDB
101
102 # MYSQL
103 spring.datasource.url                = jdbc:mariadb://localhost:3306/nbi
104 spring.datasource.username           = root
105 spring.datasource.password           = secret
106 spring.datasource.testWhileIdle      = true
107 spring.datasource.validationQuery    = SELECT 1
108 spring.datasource.driver-class-name  = org.mariadb.jdbc.Driver
109 spring.jpa.show-sql                  = false
110 spring.jpa.hibernate.ddl-auto        = update
111 spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy