-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathconfig.json
More file actions
64 lines (60 loc) · 1.87 KB
/
config.json
File metadata and controls
64 lines (60 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"config_version": 1,
"service_name": "go-captcha-service",
"service_node": 1,
"http_host": "0.0.0.0",
"http_port": "8080",
"grpc_host": "0.0.0.0",
"grpc_port": "50051",
"cache_type": "memory",
"cache_addrs": "",
"cache_username": "",
"cache_password": "",
"cache_db": "0",
"cache_key_prefix": "GO_CAPTCHA_DATA:",
"cache_ttl": 1800,
"enable_dynamic_config": false,
"dynamic_config_type": "etcd",
"dynamic_config_addrs": "localhost:2379",
"dynamic_config_username": "",
"dynamic_config_password": "",
"dynamic_config_ttl": 10,
"dynamic_config_keep_alive": 3,
"dynamic_config_max_retries": 3,
"dynamic_config_base_retry_delay": 500,
"dynamic_config_tls_server_name": "",
"dynamic_config_tls_address": "",
"dynamic_config_tls_cert_file": "",
"dynamic_config_tls_key_file": "",
"dynamic_config_tls_ca_file": "",
"enable_service_discovery": false,
"service_discovery_type": "etcd",
"service_discovery_addrs": "localhost:2379",
"service_discovery_username": "",
"service_discovery_password": "",
"service_discovery_ttl": 10,
"service_discovery_keep_alive": 3,
"service_discovery_max_retries": 3,
"service_discovery_base_retry_delay": 500,
"service_discovery_tls_server_name": "",
"service_discovery_tls_address": "",
"service_discovery_tls_cert_file": "",
"service_discovery_tls_key_file": "",
"service_discovery_tls_ca_file": "",
"rate_limit_qps": 1000,
"rate_limit_burst": 1000,
"enable_cors": true,
"log_level": "info",
"api_keys": [],
"auth_apis": [
"/api/v1/manage/get-status-info",
"/api/v1/manage/del-status-info",
"/api/v1/manage/upload-resource",
"/api/v1/manage/delete-resource",
"/api/v1/manage/get-resource-list",
"/api/v1/manage/get-config",
"/api/v1/manage/update-hot-config",
"/gocaptcha.GoCaptchaService/GetStatusInfo",
"/gocaptcha.GoCaptchaService/DelStatusInfo"
]
}