Change the http REST API to https.
[aai/esr-server.git] / standalone / src / main / assembly / conf / extsys.yml
1 #
2 # Copyright 2016-2018 ZTE Corporation.
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 template: Hello, %s!
18
19 #defaultName: ${DW_DEFAULT_NAME:-Stranger}
20 # the micro service ip
21 serviceIp: 127.0.0.1
22 msbDiscoveryIp: 127.0.0.1
23 msbDiscoveryPort: 10081
24 msbServerAddr: http://127.0.0.1:80
25 registByHand: true
26
27 # use the simple server factory if you only want to run on a single port
28 #server:
29 #  type: simple
30 #  connector:
31 #    type: http
32 #    port: 8080
33 server:
34   type: simple
35   rootPath: '/api/aai-esr-server/v1/*'
36   applicationContextPath: /
37   adminContextPath: /admin
38   connector:
39     type: https
40     port: 9518
41     keyStorePath: /home/esr/conf/aaiesr.keystore
42     keyStorePassword: aaiesr
43     validateCerts: false
44     validatePeers: false
45
46 # Logging settings.
47 logging:
48
49   # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
50   level: ALL
51
52   # Logger-specific levels.
53   loggers:
54
55     # Sets the level for 'com.example.app' to DEBUG.
56     org.onap.aai.esr.ExtsysApp: INFO
57
58   appenders:
59     - type: console
60       threshold: INFO
61       timeZone: UTC
62       logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] - %m%n"
63     - type: file
64       threshold: INFO
65       logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] - %m%n"
66       currentLogFilename: ./works/logs/extsys.log
67       archivedLogFilenamePattern: ./works/logs/zip/extsys-%d{yyyy-MM-dd}.log.gz
68       archivedFileCount: 7
69       timeZone: UTC
70