github.com/XiaoMi/Gaea@v1.2.5/etc/gaea.ini (about)

     1  ; config type, etcd/file/etcdv3, you can test gaea with file type, you shoud use etcd/etcdv3 in production
     2  ; 请指定设定方式为 file 或 etcd 或 etcdv3
     3  config_type=etcd
     4  ;file config path, 具体配置放到file_config_path的namespace目录下,该下级目录为固定目录
     5  file_config_path=./etc/file
     6  
     7  ;coordinator addr
     8  coordinator_addr=http://127.0.0.1:2379
     9  ;etcd user config
    10  username=root
    11  password=root
    12  
    13  ;environ
    14  environ=local
    15  ;service name
    16  service_name=gaea_proxy
    17  ;gaea_proxy cluster name
    18  cluster_name=gaea_default_cluster
    19  
    20  ;log config
    21  log_path=./logs
    22  log_level=Notice
    23  log_filename=gaea
    24  log_output=file
    25  
    26  ;admin addr
    27  admin_addr=0.0.0.0:13307
    28  ; basic auth
    29  admin_user=admin
    30  admin_password=admin
    31  
    32  ;proxy addr
    33  proto_type=tcp4
    34  proxy_addr=0.0.0.0:13306
    35  proxy_charset=utf8
    36  ;slow sql time, when execute time is higher than this, log it, unit: ms
    37  slow_sql_time=100
    38  ;close session after session timeout, unit: seconds
    39  session_timeout=3600
    40  
    41  ;stats conf
    42  stats_enabled=true
    43  ;stats interval
    44  stats_interval=10
    45  
    46  ;encrypt key
    47  encrypt_key=1234abcd5678efg*
    48  
    49  ;server_version
    50  server_version=5.6.20-gaea
    51  
    52  ;auth plugin mysql_native_password or caching_sha2_password or ''
    53  auth_plugin=mysql_native_password