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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 component_name = service_center
17 #run mode could be many options to specify the env like prod,dev
20 ###################################################################
21 # Frontend Configurations
22 ###################################################################
23 frontend_host_ip = 127.0.0.1
24 frontend_host_port = 30103
26 ###################################################################
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)
35 read_header_timeout = 60s
40 max_header_bytes = 32768
42 max_body_bytes = 2097152
46 ###################################################################
48 ###################################################################
49 plugins_dir = ./plugins
51 # pluggable discovery service
52 discovery_plugin = etcd
53 # the discovery plugins are part of aggregator
56 # enable to register service center to backend registry
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
65 # 1. if registry_plugin equals to 'embeded_etcd'
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
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
78 # the timeout for failing to establish a connection
80 # the timeout for failing to read response of registry
81 registry_timeout = 30s
83 # indicate how many revision you want to keep in etcd
84 compact_index_delta = 100
85 compact_interval = 12h
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.
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
104 #access control plugin
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
118 #customize the uuid format
119 uuid_plugin = "mp1context"
121 ###################################################################
123 ###################################################################
126 #set 0 to disable rate limit
128 #list of places to look for IP address
129 limit_iplookups = "RemoteAddr,X-Forwarded-For,X-Real-IP"
131 ###################################################################
133 ###################################################################
135 # 0=Non-SSL mode, 1==SSL mode
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
142 ###################################################################
144 ###################################################################
145 # MaxSize of a log file before rotate. By M Bytes.
147 # Max counts to keep of a log's backup files.
148 log_backup_count = 50
149 # log format(text or json type)
151 # whether enable record syslog
154 ###################################################################
155 # above is the global configurations
156 # you can overide above configuration in specific env
157 ###################################################################
159 # DEBUG, INFO, WARN, ERROR, FATAL
161 logfile = ./service-center.log
162 ## dev env, if you are a operator,ignore this env