8e5cced39809ea72acdafc981298b5b90c371080
[ealt-edge.git] / mep / mepserver / conf / app.conf
1 # Licensed to the Apache Software Foundation (ASF) under one or more
2 # contributor license agreements.  See the NOTICE file distributed with
3 # this work for additional information regarding copyright ownership.
4 # The ASF licenses this file to You under the Apache License, Version 2.0
5 # (the "License"); you may not use this file except in compliance with
6 # the License.  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 component_name = service_center
17 #run mode could be many options to specify the env like prod,dev
18 runmode = dev
19
20 ###################################################################
21 # Frontend Configurations
22 ###################################################################
23 frontend_host_ip = 127.0.0.1
24 frontend_host_port = 30103
25
26 ###################################################################
27 # sever options
28 ###################################################################
29 # if you want to listen at ipv6 address, then set the httpaddr value like:
30 # httpaddr = 2400:A480:AAAA:200::159        (global scope)
31 # httpaddr = fe80::f816:3eff:fe17:c38b%eth0 (link-local scope)
32 httpaddr = 127.0.0.1
33 httpport = 8088
34
35 read_header_timeout = 60s
36 read_timeout = 60s
37 idle_timeout = 60s
38 write_timeout = 60s
39 # 32K
40 max_header_bytes = 32768
41 # 2M
42 max_body_bytes = 2097152
43
44 enable_pprof = 0
45
46 ###################################################################
47 # plugin options
48 ###################################################################
49 plugins_dir = ./plugins
50
51 # pluggable discovery service
52 discovery_plugin = etcd
53 # the discovery plugins are part of aggregator
54 aggregate_mode = ""
55
56 # enable to register service center to backend registry
57 self_register = 1
58
59 # pluggable registry service
60 # 'etcd' means app running as an etcd agent
61 # 'embeded_etcd' means app running as an etcd server
62 registry_plugin = embeded_etcd
63
64 # registry address
65 # 1. if registry_plugin equals to 'embeded_etcd'
66 manager_name = "sc-0"
67 manager_addr = "http://127.0.0.1:2380"
68 manager_cluster = "sc-0=http://127.0.0.1:2380"
69 # 2. if registry_plugin equals to 'etcd'
70 # manager_cluster = "127.0.0.1:2379"
71 # manager_cluster = "127.0.0.1:2381
72
73 # heartbeat that sync synchronizes client's endpoints with the known endpoints from
74 # the etcd membership, unit is second and value must greater then 1s, it is set
75 # default 30s if value less then 0
76 auto_sync_interval = 30s
77
78 # the timeout for failing to establish a connection
79 connect_timeout = 10s
80 # the timeout for failing to read response of registry
81 registry_timeout = 30s
82
83 # indicate how many revision you want to keep in etcd
84 compact_index_delta = 100
85 compact_interval = 12h
86
87 # registry cache, if this option value set 0, service center can run
88 # in lower memory but no longer push the events to client.
89 enable_cache = 1
90
91 # pluggable cipher
92 cipher_plugin = ""
93
94 # suppot buildin, unlimit
95 # in buildin mode(default): microservice capacity is 50000
96 #                           instance capacity is 150000
97 #                           schema capacity of single microservice is 100
98 #                           rule capacity of single microservice is 100
99 #                           tag capacity of single microservice is 100
100 # in unlimit mode: all resource capacities are unlimited, including
101 #                  microservices, instances, schemas, rules, tags
102 quota_plugin = ""
103
104 #access control plugin
105 auth_plugin = ""
106
107 #support om, manage
108 auditlog_plugin = ""
109
110 #tracing: buildin(zipkin)
111 #  buildin(zipkin): Can export TRACING_COLLECTOR env variable to select
112 #                   collector type, 'server' means report trace data
113 #                   to zipkin server address specified by TRACING_SERVER_ADDRESS
114 #                   env variable; 'file' means just output a file stored
115 #                   in path specified by TRACING_FILE_PATH env variable
116 trace_plugin = ""
117
118 #customize the uuid format
119 uuid_plugin = "mp1context"
120
121 ###################################################################
122 # rate limit options
123 ###################################################################
124 #ttl=m, s, ms
125 limit_ttl = "s"
126 #set 0 to disable rate limit
127 limit_conns = 0
128 #list of places to look for IP address
129 limit_iplookups = "RemoteAddr,X-Forwarded-For,X-Real-IP"
130
131 ###################################################################
132 # ssl/tls options
133 ###################################################################
134 ssl_plugin = ""
135 # 0=Non-SSL mode, 1==SSL mode
136 ssl_mode = 0
137 ssl_verify_client = 1
138 # minimal tls protocol, [TLSv1.0, TLSv1.1, TLSv1.2]
139 ssl_min_version = TLSv1.2
140 ssl_ciphers = TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_128_GCM_SHA256
141
142 ###################################################################
143 # log options
144 ###################################################################
145 # MaxSize of a log file before rotate. By M Bytes.
146 log_rotate_size = 20
147 # Max counts to keep of a log's backup files.
148 log_backup_count = 50
149 # log format(text or json type)
150 log_format = text
151 # whether enable record syslog
152 log_sys = false
153
154 ###################################################################
155 # above is the global configurations
156 # you can overide above configuration in specific env
157 ###################################################################
158 [prod]
159 # DEBUG, INFO, WARN, ERROR, FATAL
160 loglevel = INFO
161 logfile = ./service-center.log
162 ## dev env, if you are a operator,ignore this env
163 [dev]
164 loglevel = DEBUG
165 logfile = ""
166 enable_pprof = 1