-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
102 lines (91 loc) · 2.33 KB
/
config.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
## This is the unique configuration file for the software Knowledge Base framework
version: "0.2"
## configuration related to ArangoDB
arangodb:
arango_host: "localhost"
arango_port: 8529
arango_protocol: "http"
arango_user: "root"
arango_pwd: "root"
## indexing and search via ElasticSearch
elasticsearch:
cluster: ""
host: ""
port: 9200
index_name: "software-kb"
batch_size: 1000
thread_count: 6
keep_alive: false
log: "error"
request_timeout: 1000000
sniff_on_start: true
suggest_compression: true
## for using GROBID as additional data normalization service (for raw bibliographical references, name, dates)
grobid:
grobid_host: "cloud.science-miner.com/grobid"
grobid_protocol: "https"
grobid_port: ~
## for using biblio-glutton for reference matching
biblio-glutton:
biblio_glutton_host: "cloud.science-miner.com/glutton"
biblio_glutton_protocol: "https"
biblio_glutton_port: ~
## for using entity-fishing for additional disambiguation and text summaries
entity-fishing:
entity_fishing_host: "cloud.science-miner.com/nerd"
entity_fishing_protocol: "https"
entity_fishing_port:
crossref:
crossref_base: "https://api.crossref.org"
crossref_email: ~
unpaywall:
unpaywall_base: "http://api.unpaywall.org/v2/"
unpaywall_email: ~
# logging, see https://docs.python.org/3/library/logging.config.html#logging-config-fileformat
logging:
formatters:
simple:
format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
handlers:
console:
class: logging.StreamHandler
level: DEBUG
formatter: simple
stream: ext://sys.stdout
loggers:
simpleExample:
level: DEBUG
handlers: [console]
propagate: no
root:
level: DEBUG
handlers: [console]
## CORS setting for the web API
CORS:
allowed_origins:
- "*"
allowed_methods:
- "OPTIONS"
- "GET"
- "PUT"
- "POST"
- "DELETE"
- "HEAD"
allowed_headers:
- "X-Requested-With"
- "Content-Type"
- "Accept"
- "Origin"
## web API settings
api:
port: 8080
host: "localhost"
# to specify a custom default header in the response
#header:
reload: false
log_level: "debug"
# the following is used in the generated API documentation
version: "0.2"
name: "Software KB web API"
description: "Web API for the Software Knowledge Base"
api_route: ""