msb protocol synch change
[msb/apigateway.git] / msb-core / apiroute / apiroute-standalone / src / assembly / resource / apiroute / conf / apiroute.yml
1 #
2 # Copyright 2016 2015-2016 ZTE, Inc. and others. All rights reserved.
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 #     Author: Zhaoxing Meng
17 #     email: meng.zhaoxing1@zte.com.cn
18 #
19
20 defaultWorkspace: ../apiroute-works
21
22 defaultName: ${DW_DEFAULT_NAME:-Stranger}
23
24 propertiesName: redis.properties
25 propertiesDir: conf
26
27 # use the discover config if you want to monitor a discover service and register microservices change
28 discoverInfo:
29    ip: 127.0.0.1
30    port: 10081
31    enabled: false
32
33 consulInfo:
34    ip: 127.0.0.1
35    port: 8500
36  
37 # use the simple server factory if you only want to run on a single port
38 server:
39   type: simple
40   rootPath: '/api/microservices/v1/*'
41   applicationContextPath: /
42   adminContextPath: /admin
43   connector:
44     type: http
45     port: 8086
46
47 # Logging settings.
48 logging:
49
50   # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
51   level: ALL
52
53   # Logger-specific levels.
54   loggers:
55
56     # Sets the level for 'com.example.app' to DEBUG.
57     com.example: DEBUG
58
59   appenders:
60     - type: console
61       threshold: INFO
62       timeZone: UTC
63       logFormat: "%-6level [%d{HH:mm:ss.SSS}] [%t] %logger{5} - %X{code} %msg %n"
64     - type: file
65       threshold: INFO
66       logFormat: "%-6level [%d{HH:mm:ss.SSS}] [%t] %logger{5} - %X{code} %msg %n"
67       currentLogFilename: ../apiroute-works/logs/application.log
68       archivedLogFilenamePattern: ../apiroute-works/logs/application-%d{yyyy-MM-dd}-%i.log.gz
69       archivedFileCount: 7
70       timeZone: UTC
71