b146afd4b844f271ce1c2aea7c592b6fc874f447
[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                          = v4
24
25 # SERVER
26 server.servlet.context-path          = /nbi/api/${nbi.version}
27 server.public.ip                     = localhost
28 server.port                          = 8080
29
30 # LOGGING
31 logging.level.                       = WARN
32 logging.level.org.springframework    = OFF
33 logging.level.org.onap               = INFO
34 logging.level.root                   = WARN
35 spring.main.banner-mode              = off
36
37 # ONAP
38 onap.lcpCloudRegionId                = RegionOne
39 onap.tenantId                        = 6e97a2bd51d74f6db5671d8dc1517d82
40 onap.cloudOwner                      = CloudOwner
41
42 # NBI
43 nbi.url                              = https://localhost:${server.port}${server.servlet.context-path}
44 nbi.public.url                       = https://${server.public.ip}:${server.port}${server.servlet.context-path}
45 nbi.callForVNF                       = false
46
47 # SCHEDULER
48 scheduler.pollingDurationInMins      = 360
49 serviceOrder.schedule                = 5000
50 serviceOrder.initial                 = 1
51 executionTask.schedule               = 2000
52 executionTask.initial                = 1
53 dmaapCheck.schedule                  = 10000
54 dmaapCheck.initial                   = 1
55
56 # SDC
57 sdc.host                             = http://localhost:8081
58 sdc.header.ecompInstanceId           = demo
59 sdc.header.authorization             = Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=
60 # AAI
61
62 aai.host                             = http://localhost:8081
63 aai.header.authorization             = Basic QUFJOkFBSQ==
64 aai.api.id                           = NBI
65 aai.header.transaction.id            = 808b54e3-e563-4144-a1b9-e24e2ed93d4f
66 # SO
67
68 so.host                              = http://localhost:8081
69 so.header.authorization              = Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==
70 so.api.id                            = SO
71 so.owning.entity.id                  = OE-generic
72 so.owning.entity.name                = OE-generic
73 so.project.name                      = Project-generic
74 so.onap.partner.name                 = NBI
75
76
77 # DMAAP
78 dmaap.host                           = http://10.0.6.1:3904
79 dmaap.aai.topic                      = AAI-EVENT
80 dmaap.sdc.topic                      = SDC-DISTR-NOTIF-TOPIC-AUTO
81 dmaap.consumergroup                  = NBICG1
82 dmaap.consumerid                     = NBIC1
83 dmaap.timeout                        = 2000
84
85 # MSB
86 msb.enabled                          = true
87 msb.discovery.host                   = msb_discovery
88 msb.discovery.port                   = 10081
89 msb.discovery.retry                  = 1
90 msb.discovery.retry_interval         = 5000
91 msb.service.host                     =
92 msb.service.name                     = nbi
93 msb.service.custom_path              =
94 msb.service.protocol                 = REST
95 msb.service.visual_range             = 1
96 msb.service.enable_ssl               = false
97
98 # MONGO
99 spring.data.mongodb.host             = localhost
100 spring.data.mongodb.port             = 27017
101 spring.data.mongodb.database         = ServiceOrderDB
102
103 # MYSQL
104 spring.datasource.url                = jdbc:mariadb://localhost:3306/nbi
105 spring.datasource.username           = root
106 spring.datasource.password           = secret
107 spring.datasource.testWhileIdle      = true
108 spring.datasource.validationQuery    = SELECT 1
109 spring.datasource.driver-class-name  = org.mariadb.jdbc.Driver
110 spring.jpa.show-sql                  = false
111 spring.jpa.hibernate.ddl-auto        = update
112 spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy