b0a934ba8540558c9008c5fca62fdd52a8c89a85
[holmes/rule-management.git] / rulemgt-standalone / src / main / assembly / conf / rulemgt.yml
1 apidescription: ZTE Holmes rule Management rest API
2
3 # use the simple server factory if you only want to run on a single port
4 #server:
5 #  type: simple
6 #  connector:
7 #    type: http
8 #    port: 12003
9
10 server:
11   type: simple
12   rootPath: '/api/holmes-rule-mgmt/v1/*'
13   applicationContextPath: /
14   adminContextPath: /admin
15   connector:
16     type: https
17     port: 9101
18     keyStorePath: /home/holmes/conf/holmes.keystore
19     keyStorePassword: holmes
20     validateCerts: false
21     validatePeers: false
22
23 # Logging settings.
24 logging:
25
26   # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
27   level: INFO
28
29   # Logger-specific levels.
30   loggers:
31
32     # Sets the level for 'com.example.app' to DEBUG.
33     com.example: DEBUG
34   
35   appenders:
36     - type: console
37       threshold: INFO
38       timeZone: UTC
39       logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] - %m%n"
40     - type: file
41       threshold: INFO
42       logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] - %m%n"
43       currentLogFilename: ../logs/fm-relation.log
44       archivedLogFilenamePattern: ../logs/zip/fm-relation-%d{yyyy-MM-dd}.log.gz
45       archivedFileCount: 7
46   #  - type: socketJson
47       threshold: INFO 
48   #    autoDiscover: false
49   #    logstashServiceName: logstash
50    #   logstashServiceVersion: v1
51
52 #database
53 database:
54   driverClass: org.postgresql.Driver
55   user: holmes
56   password: holmespwd
57   url: jdbc:postgresql://10.96.33.33:5432/holmes
58   properties:
59     charSet: UTF-8
60   maxWaitForConnection: 1s
61   validationQuery: "/* MyService Health Check */ SELECT 1"
62   minSize: 8
63   maxSize: 100
64   checkConnectionWhileIdle: false
65   evictionInterval: 10s
66   minIdleTime: 1s