172fae396e3a2ea41197eccc0dfbc312ab86bf86
[msb/apigateway.git] / msb-core / apiroute / apiroute-standalone / src / assembly / resource / apiroute / conf / apiroute.yml
1 defaultWorkspace: ../apiroute-works\r
2 \r
3 defaultName: ${DW_DEFAULT_NAME:-Stranger}\r
4 \r
5 propertiesName: redis.properties\r
6 propertiesDir: conf\r
7 \r
8 # use the discover config if you want to monitor a discover service and register microservices change\r
9 discoverInfo:\r
10    ip: 127.0.0.1\r
11    port: 10081\r
12    enabled: false\r
13 \r
14 consulInfo:\r
15    ip: 127.0.0.1\r
16    port: 8500\r
17  \r
18 # use the simple server factory if you only want to run on a single port\r
19 server:\r
20   type: simple\r
21   rootPath: '/api/microservices/v1/*'\r
22   applicationContextPath: /\r
23   adminContextPath: /admin\r
24   connector:\r
25     type: http\r
26     port: 8086\r
27 \r
28 # Logging settings.\r
29 logging:\r
30 \r
31   # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.\r
32   level: ALL\r
33 \r
34   # Logger-specific levels.\r
35   loggers:\r
36 \r
37     # Sets the level for 'com.example.app' to DEBUG.\r
38     com.example: DEBUG\r
39 \r
40   appenders:\r
41     - type: console\r
42       threshold: INFO\r
43       timeZone: UTC\r
44       logFormat: "%-6level [%d{HH:mm:ss.SSS}] [%t] %logger{5} - %X{code} %msg %n"\r
45     - type: file\r
46       threshold: INFO\r
47       logFormat: "%-6level [%d{HH:mm:ss.SSS}] [%t] %logger{5} - %X{code} %msg %n"\r
48       currentLogFilename: ../apiroute-works/logs/application.log\r
49       archivedLogFilenamePattern: ../apiroute-works/logs/application-%d{yyyy-MM-dd}-%i.log.gz\r
50       archivedFileCount: 7\r
51       timeZone: UTC\r
52 \r